关于伪类选择器
来源:互联网 发布:hack支付源码 编辑:程序博客网 时间:2024/05/22 13:41
关于强大的nth-child的人是,以前只应用了它的十分之功能,这是一个小的总结。
:nth-child(下标+1);
也就是说不能为零。
有了上面的用法就知道括号里的数值是可以计算的,比如2的倍数,3的倍数这样来写。
:nth-child(2n);
表格中是2的倍数的样式设置;
:nth-child(参数可为负数,负数从元素最后开始计算);
:nth-child(奇数event相对的add);
阅读全文
0 0
- 关于伪类选择器
- 关于CSS伪类选择器
- css选择器-伪类选择器
- CSS伪类选择器
- css3 伪类选择器
- CSS-伪类选择器
- 伪类选择器
- css3伪类选择器
- 结构性伪类选择器
- CSS3伪类选择器
- html伪类选择器
- CSS选择器&伪类
- CSS3伪类选择器
- 伪类选择器
- 伪类选择器
- CSS-伪类选择器
- CSS伪类选择器
- CSS3选择器--伪类
- [javascript]判断素数的无优化函数
- UDP调用connect()作用
- 使用Jsoup 抓取本人CSDN博客文章列表的数据
- Java9新特性介绍
- Topological Sorting in a DAG
- 关于伪类选择器
- 字符首尾同时浮现
- Exception in thread "main" java.lang.ExceptionInInitializerError
- Translate 【gcd 妙用】
- django 实现文件下载功能
- java web四大域对象
- Linux_入门基础
- 10多岁比智力,20多岁比体力,30来岁拼专业,40岁拼人脉
- 326. Power of Three