ul列表: #Ulist li:nth-of-type(odd){ margin-left: 20px;}奇数行 #Ulist li:nth-of-type(even){margin-left: 10px;}偶数行 ...
第一种:鼠标经过时table表格中的颜色根据奇偶行改变不同的颜色 第二种:直接用css发生改变,使用了伪类选择器nth child ...
2019-02-28 16:21 0 1779 推荐指数:
ul列表: #Ulist li:nth-of-type(odd){ margin-left: 20px;}奇数行 #Ulist li:nth-of-type(even){margin-left: 10px;}偶数行 ...
.list ul li:nth-child(even){ ...} //li的偶数行样式 .list ul li:nth-child(odd){ ...} //li的奇数行样式 .list ul li:nth-child(1){ top:0;} //第一个 ...
CSS代码 .table-striped tbody tr:nth-child(odd) td { background-color: Red; } 页面代码 1 < html > ...
select * from (select @rownum := @rownum+1 as row_num, t.* from 表名 t,(select @rownum:=0) tmp_table order by CreateTime limit 10) t where t.row_num%2=1 ...
...
odd表示奇数行,even表示偶数行; tr:nth-child(odd); .table-striped > tbody > tr:nth-child(odd) { background-color ...
awk 命令: 1、 打印行号和内容: awk '{print NR":"$0}' 2、 输出:偶数行和奇数行到文件 awk '{print $0.txt > NR%2.txt}' file 3、 打印出奇数行内容:(三者等价) awk 'NR%2==1' file ...
第一种方法: 第二种方法: 第三种方法: ...