通过css代码做Table表格隔行变色效果
分类:网页设计 Tags: css table 表格 评论:0 浏览:7223 最近更新时间:2014/8/23 13:19:24
<html>
<head>
<title>Table隔行变色</title>
<style>
<!--
tr{
background: #f00;
}
tr:nth-child(2n){
background: #ccc;
}
tr{
background-color: expression((this.sectionRowIndex % 2 == 0) ? "#f00" : "#ccc" );
}
-->
</style>
</head>
<body>
<table>
<tr><td>111111111</td></tr>
<tr><td>222222222</td></tr>
<tr><td>333333333</td></tr>
<tr><td>444444444</td></tr>
</table>
</body>
</html>本文地址:/525/
-
• CSS选取第几个标签元素:first-child、last-child、nth-child
• 网站快速成功的九个步骤
• 如何给表单文本域加上背景(图)
• 中英文企业网站常用中英文翻译对照
• 不错的photoshop样式免费下载,asl格式,Web2.0风格导航条与按钮效果
• 推荐1个免费的按钮图标icon下载站点,特别有质感哦
• 点击一个超级链接,能同时打开两个网页/网站的代码
• 如何给网站制作一个favicon.ico图标,附代码(图)
• 如何让网页上的所有链接都在新窗口打开
• 中式网站之古典风格网址