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 ...
第一種方法: 第二種方法: 第三種方法: ...