CSS3
来源:互联网 发布:wps mail for linux 编辑:程序博客网 时间:2024/06/05 09:50
选择器
属性选择器
[class] { color:red; } //将带有class属性的标签颜色设为red[href] { color:red; } //将带有href属性的标签颜色设为red[class^='fn'] { font-size:35px;} //将所有类型以fn开头的元素字体设置为35px[class$='fn'] { font-size:35px;} //将所有类型以fn结尾的元素字体设置为35px[class*='fn'] { font-size:35px;} //将所有类型包含fn的元素字体设置为35px???[class!='fn'] { font-size:35px;} //将所有类型包含fn的元素字体设置为35px
伪类选择器
- ::first-child
//选择第一个元素 父元素下面的子元素当中的第一个ul :first-child { color: blue; }//选中ul下的第一个元素,并且该元素必须是liul li:first-child { color: blue; }li:first-child { color: blue;}<ul> <li>001</li> <li>002</li> <li>003</li></ul><div> <li>11</li> <li>21</li> <li>31</li></div>
阅读全文
0 0
- css3
- css3
- css3
- css3
- css3
- css3
- CSS3
- CSS3
- css3
- CSS3
- css3
- css3
- CSS3
- css3
- css3
- css3
- css3
- css3
- 研究学习Kotlin的一些方法
- 我与python约个会:19. 再说函数~那些不得不知道的事儿
- 数据结构之线性表
- 关于CoordinatorLayout展开与折叠相关属性
- 仿微信底部tab导航
- CSS3
- Excel中CONCATENATE函数生成SQL insert 语句
- ListView item点击失效
- html的双下划线的解决办法
- Android NDK开发 。Java层与Jni层的数组传递(二)
- scraping_编写第一个网络爬虫_最终版本
- 第十四天H5进阶
- 获得IIS节点信息
- 100道单选题,随机选,考够60分的概率有多高?