Change the css expression of a table to a different line
Last Update:2018-12-08
Source: Internet
Author: User
First, write this expression in this way. <Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312"> <br/> <style type = "text/css"> <! -- Tr {background-color: expression (this. sectionRowIndex = 0? "# AFAFAF" :( (this. sectionRowIndex % 2 = 0 )? "# FFF0F0": "# F0F0FF "));} --> </style> <table cellspacing = "1"> <tr> <td> table test </td> <td> table Test </td> <td> table test </td> </tr> <td> table test </td> <td> table test </td> <td> table test </td> </tr> <td> table test </td> <td> table Test </td> <td> table test </td> </tr> <tr> <td> table test </td> <td> Table Test test </td> <td> table test </td> </tr> <td> table test </td> <td> table test </td> </tr> <tr> <td> table test </td> <td> table test </td> <td> table test </td> </tr> </table> <table cellspacing = "1"> <tr> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </ td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </ td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td>/ td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </ td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> </tr> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </ td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50 "> </td> <td width =" 50 "> </td> </tr> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </ td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </td> <td width =" 50 "> </ td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> <td width = "50"> </td> </tr> </table> <p>