收藏 分销(赏)

CSS实现奇偶行异色.doc

上传人:xrp****65 文档编号:7031243 上传时间:2024-12-25 格式:DOC 页数:3 大小:12.75KB
下载 相关 举报
CSS实现奇偶行异色.doc_第1页
第1页 / 共3页
CSS实现奇偶行异色.doc_第2页
第2页 / 共3页
点击查看更多>>
资源描述
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <title>双色表格CSS实例</title> <style type="text/css"> #DataGrid1 tr { background-color: expression( this.sectionRowIndex == 0 ? "#FFCCCC" : ( (this.sectionRowIndex % 2 == 0) ? "#FFF0F0" : "#F0F0FF" ) ); color: expression(this.sectionRowIndex == 0 ? "#FFFFFF" : ""); font-weight: expression(this.sectionRowIndex == 0 ? "BOLD" : ""); TableSelect: expression( this.sectionRowIndex == 0 ? "" : ( onmouseover = function() { this.style.backgroundColor = ( this.style.backgroundColor != "#69cdff" ? "#69cdff" : ( this.sectionRowIndex == 0 ? "#FFCCCC" : ( this.sectionRowIndex % 2 == 0 ? "#FFF0F0" : "#F0F0FF" ) ) ) }, onmouseout = function() { this.style.backgroundColor = ( this.style.backgroundColor != "#69cdff" ? "#69cdff" : ( this.sectionRowIndex == 0 ? "#FFCCCC" : ( this.sectionRowIndex % 2 == 0 ? "#FFF0F0" : "#F0F0FF" ) ) ) } ) ) } #DataGrid1 td { background-color:expression( this.cellIndex == 0 ? ( this.parentElement.sectionRowIndex == 0 ? "#FFCCCC" : "#DDDDDD" ) : null ) } .FindAreaTable1 { font-size: 12px; color: #333333; text-decoration: none; width: 400px; cursor: hand; background-color: #FFFFFF; vertical-align: middle; text-align: center; } </style> </head> <body> <table cellspacing="1" class="FindAreaTable1" ID="DataGrid1"> <tr> <td>首行首列</td> <td>首行</td> <td>首行</td> <td>首行</td> <td>首行</td> <td>首行</td> </tr> <tr> <td>行1首列</td> <td>行1</td> <td>行1</td> <td>行1</td> <td>行1</td> <td>行1</td> </tr> <tr> <td>行2首列</td> <td>行2</td> <td>行2</td> <td>行2</td> <td>行2</td> <td>行2</td> </tr> <tr> <td>行3首列</td> <td>行3</td> <td>行3</td> <td>行3</td> <td>行3</td> <td>行3</td> </tr> <tr> <td>行4首列</td> <td>行4</td> <td>行4</td> <td>行4</td> <td>行4</td> <td>行4</td> </tr> <tr> <td>行5首列</td> <td>行5</td> <td>行5</td> <td>行5</td> <td>行5</td> <td>行5</td> </tr> </table> </body> </html>
展开阅读全文

开通  VIP会员、SVIP会员  优惠大
下载10份以上建议开通VIP会员
下载20份以上建议开通SVIP会员


开通VIP      成为共赢上传
相似文档                                   自信AI助手自信AI助手

当前位置:首页 > 百科休闲 > 其他

移动网页_全站_页脚广告1

关于我们      便捷服务       自信AI       AI导航        抽奖活动

©2010-2025 宁波自信网络信息技术有限公司  版权所有

客服电话:4009-655-100  投诉/维权电话:18658249818

gongan.png浙公网安备33021202000488号   

icp.png浙ICP备2021020529号-1  |  浙B2-20240490  

关注我们 :微信公众号    抖音    微博    LOFTER 

客服