posts - 2, comments - 27, trackbacks - 0, articles - 60
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

HTML表格斑马线

Posted on 2008-11-02 17:39 ZhouFeng 阅读(695) 评论(0)  编辑  收藏 所属分类: 转载Web开发
/*表格间隔行变背景色*/
.row
{
 alternateColor:expression(bgColor=rowIndex%2==0?'#FFFFFF':'#EFF7FF');
 }           

 
将上面的代码加入到tr中

<table>
 
<thead>
  
<tr>
   
<td nowrap>状态</td>

  
</tr>
 
</thead>
 
<tbody>
  
<tr class="row">
   
<td nowrap>11111</td>
  
</tr>
 
</tbody>
</table>

只有注册用户登录后才能发表评论。


网站导航: