« 关于IE和Firefox的CSS兼容种种讨厌jj98终于被干掉了 »

双色相间表格的CSS实现方式

<html>
<body>
<style> 
.DoubleColorTable tr{
background-color:expression("#FFFFFF,#EEEEEE".split(",")[rowIndex%2])

</style> 
<table height="350" width="70%"  border="1" cellpadding="0"  class="DoubleColorTable">
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
</table>
</body>
</html>

发表评论:


◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Z-Blog  
www.sun023.com