function getrowbg() {
global $i;
if (isset($i)) {
if ($i%2==0) {
$i=1;
return "#FFFFFF";
} else {
$i=0;
return "#e7e7e7";
}
}
global $i;
if (isset($i)) {
if ($i%2==0) {
$i=1;
return "#FFFFFF";
} else {
$i=0;
return "#e7e7e7";
}
}
width:100%;padding:0px;margin:0px;
}
table.ChenHuiDotNet TR.Title{
font-size:14px; height:24px;text-align:center;
border-width: 0px;
border-top-style: none;
border-bottom-style: dashed;
overflow: hidden; text-overflow:ellipsis;
color:#721480;
BACKGROUND-COLOR:#F5C5E2;
}
table.ChenHuiDotNet TR.Title td{
color:#C52672;
}table.ChenHuiDotNet TR.Row{
font-size:14px; height:24px;
/*BACKGROUND-COLOR: expression((this.sectionRowIndex%2==0)?"#FFFFCC":"#fff9f0");*/
BACKGROUND-COLOR: expression((this.sectionRowIndex%2==0)?"#eeeeee":"#fff9f0");
ChenHui:expression(onmouseout=function(){
this.backgroundColor="#CCCCCC";
},onmouseover=function(){
this.backgroundColor="#003c9c";
},onmousedown=function(){
this.borderBottomColor = "#F4E088";
});
word-wrap: break-word; word-break: break-all;overflow: hidden; text-overflow:ellipsis;
}
table.ChenHuiDotNet TR.Row td{
border-bottom-width: 1px;border-bottom-color: #CCCCCC;border-bottom-style: solid ;
}
<tr class="Title">
<td align="center">列名</td>
</tr>
<tr class="Row">
<td align="center">99999999999999999</td>
</tr>
</TABLE>
为什么我在那里问都要说要css呢
用css
.switchtr {background-color:expression((this.sectionRowIndex%2==0)?"#e7e7e7":"#ffffff")}
这里更简单
我只想为什么上面的不行而以