Css3.0的一些体会
来源:互联网 发布:apache cgi 配置 编辑:程序博客网 时间:2024/06/06 18:29
选择器
attr 标签属性a元素属性以什么开头a[att^='']a元素属性以什么结尾a[att$='']a元素属性以中的匹配的a[att*='']
:root选择器等同于 html标签
:not
input:not([attr=""]){}
:empty
p:empty{匹配元素中空内容,有空格都不行}
/#id:target
<span id="brand"></span>css: #brand:target{点击id为brand之后发生的css}
first-child —–first-of-type
li:first-child{li标签第一个发生的css}ul>li:first-child{ul下第一个li标签发生的css}
last-child
li:last-child{li标签最后一个发生的css}
nth-child(n)
li:nth-child(2n)li:nth-child(2n+1){分别匹配偶数和奇数的li,可以传入数字}li:nth-last-child{匹配li倒数第几个}
:only-child
选择器选择的是父元素中只有一个子元素,而且只有唯一的一个子元素。也就是说,匹配的元素的父元素中仅有一个子元素,而且是一个唯一的子元素
0 0
- Css3.0的一些体会
- 一些工作的体会
- Ajax的一些体会
- OnGestureListener的一些体会
- static的一些体会
- 最近的一些体会
- 自己的一些体会
- 编程的一些体会
- OnGestureListener的一些体会
- 最近的一些体会
- GUIskin的一些体会
- 学习的一些体会
- 学习的一些体会
- 上研后的一些体会
- DLNA的一些体会
- hls 的一些体会
- 论坛的一些体会
- 体会CSS3 perspective属性的作用
- 字符串
- Leetcode 39 Combination Sum & 40 Combination Sum II & 216 Combination Sum III & 377 Combination V
- Unity中HideInInspector和SerializeField一起使用
- DWR的使用
- 实用的弹出层效果(阻止浏览器的默认行为)
- Css3.0的一些体会
- 集合(数组,字典)
- saiku 修改默认图表颜色
- Java实现链式栈
- linux的yum命令常用场景
- 欢迎使用CSDN-markdown编辑器
- #warning: 尚未导入平台类型:[XXXXXXX (1)]
- MySQL中优化sql语句查询常用的30种方法
- DL学习笔记【6】caffe参数调节-卷积层(convolution)