Another kind of use of TBODY

xiaoxiao2021-03-06  47

First, build a style.

This example is: Body, Table, Tr, Td {Font-size: 12px; Color: # 000000;}. Sec1 {background-color: # 99cc99; cursor: hand; color: # 000000; border-left: 1px solid #ffff; border-top: 1px solid #fffff; border-right: 1px solid gray; border-bottom: 1px solid #fffffffff} .sec2 {background-color: # d4d0c8; cursor: hand; color: # 000000; Border-left: 1px solid #ffff; border-top: 1px solid #ffffff; border-right: 1px solid gray; font-weight: bold;} .main_tab {background-color: # d4d0c8; color: # 000000; border- Left: 1px solid #ffff; border-right: 1px solid gray; border-bottom: 1px solid gray;} 2, insert JavaScript code: (in )