<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style>
.t1 {background-color:#336699;text-align:center}
.t2 {background-color:#ffcc00;text-align:center}
</style>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table id="table1" width="100%" border="0" cellpadding="0" cellspacing="0">
<tr><td>jsjsdjksdfdfgdfd</td></tr>
<tr><td>vrtbtynyudegbg</td></tr>
<tr><td>btrgjyjyukmymy</td></tr>
<tr><td>fvdfthdhyjd</td></tr>
<tr><td>htyjertyuktuijcdukdetyjety</td></tr>
<tr><td>fdghrguiowheruighiaue</td></tr>
<tr><td>aosiiopweorhwdebfcjlhaSD</td></tr>
<tr><td>SDHFKAJBNELFJAOSDFA</td></tr>
<tr><td>山地花费</td></tr>
<tr><td>是士大夫金粟兰搭街坊棵</td></tr>
<tr><td>打开立脚点艰苦发挥感</td></tr>
<tr><td>地方了;赶快地方经过</td></tr>
<tr><td>当然人;铁蒺藜课题那样立刻人</td></tr>
<tr><td>豆腐干大后方大概部分</td></tr>
<tr><td>如同如同忽然体育如同</td></tr>
<tr><td>规范化如同依然同样如</td></tr>
<tr><td>为了打开</td></tr>
<tr><td>shdfsjitirueruiwoiwopeirwueitu</td></tr>
<tr><td>sjdfkjherhtuiehrjfhgsjghghdfgd</td></tr>
<tr><td>以上文字都是POPO我瞎打的,以证明不是document.write()出来的:D</td></tr>
</table>
<script Language="Javascript1.2">
for (i=0;i<table1.rows.length;i++) {
(i%2==0)?(table1.rows(i).className = "t1"):(table1.rows(i).className = "t2");
}
</script>
文章来源于领测软件测试网 https://www.ltesting.net/