The attribute definitions in the table are always used, but the vs editor always checks and decides to use CSS for definition. There is a ready-made online, which can be used as a reference here.
<! 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 = gb2312"/>
<Title> table style </title>
<Style>
# Browser {
Width: 700px;
Margin: 0 auto;
Border-collapse: collapse;
Font-family: Arial, Helvetica, sans-serif;
Text-align: center;
}
# Browser th, TD {
Border: 1px solid # AAA;
}
# Browser thead Th {
Border-bottom: 2px solid # 3d580b;
Background-color: #8fc629;
Color: # FFF;
Padding: 10px 0px;
}
# Browser Th {
Background-color: # f2f4b9;
}
# Browser th. Title {
Background-color: # e3e685;
}
# Browser tfoot TD {
Border-width: 0px;
Text-align: rightright;
Font-size: 12px;
Color: #777;
}
# Browser caption {
Font-weight: bold;
Padding: 6px 0px;
Color: # 3d580b;
Font-size: 25px;
}
# XHTML th. Title {
Background-color: # ffd56c;
}
# XHTML Th {
Background-color: # ffe8ae;
}
</Style>
</Head>
<Body>
<H1> table style <HR/>
<Table id = "Browser">
<Caption> browser compatibility list </caption>
<Thead>
<Tr>
<TH> CSS features </Th>
& Lt; th & gt; MSIE 6.0 & lt;/th & gt;
<TH> FF 1.0 </Th>
<TH> FF 1.5 </Th>
<TH> op 8.5 </Th>
</Tr>
</Thead>
<Tbody id = "html">
<Tr>
<TH colspan = "5" class = "title"> HTML 4.01 </Th>
</Tr>
<Tr>
<TH> A </Th>
<TD> 81% </TD>
<TD> 85% </TD>
<TD> 85% </TD>
<TD> 94% </TD>
</Tr>
<Tr>
<TH> abbr </Th>
<TD> n </TD>
<TD> 97% </TD>
<TD> 85% </TD>
<TD> 94% </TD>
</Tr>
<Tr>
<TH> acronym </Th>
<TD> 94% </TD>
<TD> 97% </TD>
<TD> 97% </TD>
<TD> 75% </TD>
</Tr>
</Tbody>
<Tbody id = "XHTML">
<Tr>
<TH colspan = "5" class = "title"> XHTML 1.0 changes </TD>
</Tr>
<Tr>
<TH> HTML in XML </Th>
<TD> n </TD>
<TD> Y </TD>
<TD> Y </TD>
<TD> Y </TD>
</Tr>
<Tr>
<TH> well-formed </Th>
<TD> Y </TD>
<TD> Y </TD>
<TD> Y </TD>
<TD> Y </TD>
</Tr>
<Tr>
<TH> media types </Th>
<TD> n </TD>
<TD> Y </TD>
<TD> Y </TD>
<TD> Y </TD>
</Tr>
</Tbody>
<Tfoot>
<Tr>
<TD colspan = "5"> data source http://rlog.cn % 3C/TD>
</Tr>
</Tfoot>
</Table>
</Body>
</Html>