经典论坛 » 前台制作与脚本专栏 » 关于CSS的两个疑问,路过知道的帮我解决下,谢谢!
中级会员
tr { background-color: expression((this.sectionRowIndex%2==0) ? "#FFF0F0" : "#F0F0FF"); }
查看详细资料
TOP
艾克司令
版主
专长 JS,PHP,Oracle
查看个人网站
tr { background-color: expression((this.sectionRowIndex>0) ? ((this.sectionRowIndex%2==0) ? "#FFF0F0" : "#F0F0FF") : "#aaaaaa"); }
高级会员
诘屈聱牙
荣誉管理团队
专长 JS,PHP,ASP
初级会员
<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 ) } .FindAreaTable { font-size: 12px; color: #333333; text-decoration: none; width: 1024px; cursor: hand; background-color: #FFFFFF; vertical-align: middle; text-align: center; } --> </style>
别之亦难
专长 网页设计,ASP,MSSQL