专注于网站技术与网络营销的博客

赞助商链接

« MySQL发布数据库移植工具Migration ToolkitXHTML代码规范 »

用CSS实现双色相间表格

具体代码


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

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

  • 相关文章:

发表评论:

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

Powered By Z-Blog 1.8 Arwen Build 81206

Copyright ©2005 - 2011, 完美生活(专注于网站技术与网络营销的博客). Some Rights Reserved.