CSS3设置Table奇数行和偶数行样式】的更多相关文章

table:.myTable tr:nth-child(even){ //偶数行 background:#fff;}.myTable tr:nth-child(odd){ //奇数行 background:#f5f2eb;} 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;}       //第一个li.list ul li:nth-child(2){ top:30px;}    //第二个li 部分情况下的解决方案 <style>  .list li:nth-of-type(odd){ margin-left:…
<style> #Ulist li:nth-of-type(odd){ margin-left: 20px;}奇数行 #Ulist li:nth-of-type(even){margin-left: 10px;}偶数行 <style> <ul id="Ulist"> <li>1</li> <li>2</li> <li>3</li> <li>4</li> &…
<style> table tbody tr:nth-child(odd){ background:#fff; } table tbody tr:nth-child(even){ background:#F5F5F5; } </style <table> <thead> <th>序号</th> <th>姓名</th> <th>性别</th> </thead> <tbody&g…
<tr <s:if test="#sts.even"> class="table_1" onMouseOut="this.className='table_1'" onMouseOver="this.className='tab_over'"</s:if><s:else> class="table_2" onMouseOut="this.className…
table tr:nth-child(odd){background:#F4F4F4;} table td:nth-child(even){color:#C00;}…
介绍一些常用的gridcontrol设置. 1.设置隔行变色.首先设置显示隔行变色,步骤:OptionsView-->EnableAppearanceEvenRow-->true和OptionsView-->EnableAppearanceOddRow-->true;然后设置奇数行和偶数行样式颜色等:Appearance-->EvenRow和Appearance-->OddRow.设计完成后,设计器出现隔行变色效果,如图: 2.设置奇偶行样式时,会看到其他行样式.App…
转自爱设计 原文链接http://www.dangshopex.com/jishufenxiang/WEBkaifajishu/8653.html CSS3的强大,让人惊叹,人们在惊喜之余,又不得不为其艰难的道路感到可惜:好的标准只有得到行业浏览器的良好支持才算得上“标准”.CSS3标 准已提出数年,但是目前能实现她的浏览器并不多,虽然部分浏览器能实现部分规范,但这又有什么用呢?面对更多的兼容性问题,CSSer们只有望洋轻叹.虽 然如此,但有前瞻性的我们,又怎能停步不前呢?今天我们就来“前瞻”一…
odd表示奇数行,even表示偶数行; tr:nth-child(odd); .table-striped > tbody > tr:nth-child(odd) { background-color: #f9f9f9; }…
awk 命令: 1. 打印行号和内容: awk '{print NR":"$0}' 2. 输出:偶数行和奇数行到文件 awk '{print $0.txt > NR%2.txt}'  file 3. 打印出奇数行内容:(三者等价) awk 'NR%2==1' file awk 'NR%2' all_file.txt awk 'i=!i' file 打印出偶数行的内容:(三者等价) awk 'NR%2==0' file awk '!(NR%2)' file awk '!(i=!i)…