<! DOCTYPE html PUBLIC "-// W3C // dtd xhtml 1.0 Transitional // EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <ptml xmlns = "http://www.w3.org/1999/xhtml"> <pead> <meta http-equiv =" content-Type "content =" text/html; charset = UTF-8 "/> <title> JavaScript automatically adds sequence numbers to the table </title> <style type =" text/css ">. index_tab {width: 100%; border-collapse: collapse; border: 1px solid #005892; margin: 8px 0 ;}. index_tab td {line-height: 35px; border: 1px solid #005892; padding-left: 4px;} tr. tr_top td {line-height: 32px; border: none; background-color: #005892; color: # fff; font-weight: bold;} td. td_center {text-align: center ;}. ys01 {background-color: # E6F0FE ;} </style> </pead> <body> <table class = "index_tab"> <tr class = "tr_top"> <td class = "td_center" width = "9%"> row number </td> <td width = "83%"> title </td> <td class = "td_center" width = "11%"> total </td> </tr> <tbody id = "bbsTab"> <tr> <td class = "td_center"> </td> <td> Vc ++ supports COleDropTarget extension classes for window and text drag and drop </ td> <td class = "td_center"> 20235 </td> </tr> <td class = "td_center"> </td> <td> easy-to-use ICO VB source program of the icon capturing tool </td> <td class = "td_center"> </td> </tr> <td class = "td_center"> </td> <td> some classic examples of VB encryption and decryption algorithms </td> <td class = "td_center"> </td> </tr> <td class = "td_center ""> </td> <td class =" td_center "> </td> </tr> <td class =" td_center "> </td> <td class = "td_center"> </td> </tr> <td class = "td_center"> </ td> </td> <td class = "td_center"> </td> </tr> </tbody> </table> </body> </ptml>
[Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]