<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>table表格颜色隔行显示</title> <style mce_bogus="1"> tr{ background-color:exPRession('#CC6600,#6699CC'.split(',')[rowIndex%2]); }</style> </head> <body> <table width="100%" border="0"> <tr> <td>表格颜色隔行显示一一一</td> </tr> <tr> <td>表格颜色隔行显示二二二</td> </tr> <tr> <td>表格颜色隔行显示三三三</td> </tr> <tr> <td>表格颜色隔行显示四四四</td> </tr> </table></body> </html>
新闻热点
疑难解答