CSS也能控制表格的交替顏色
更新時(shí)間:2006年09月14日 00:00:00 作者:
復(fù)制代碼 代碼如下:
<style type="text/css">
<!--
tr {background-color:expression((this.sectionRowIndex%2==0)?"red":"blue")}
-->
</style>
</HEAD>
<table>
<tr><td>第1行</td><td>第1行</td></tr>
<tr><td>第2行</td><td>第2行</td></tr>
<tr><td>第3行</td><td>第3行</td></tr>
<tr><td>第4行</td><td>第4行</td></tr>
<tr><td>第5行</td><td>第5行</td></tr>
</table>
相關(guān)文章
網(wǎng)頁使用Google Font API(字體)的方法
本文介紹在網(wǎng)頁中如何使用Google Font API(字體)的方法2013-11-11

