<html><head><title>HTML Table</title></head> <mce:style type="text/css"><!-- TABLE { background: blue; border-collapse: separate; /*设定了表格的边框模型*/ border-spacing: 10pt; /*边框间距*/ border-top: 15px solid red; /*顶部边框:15像素,实线,红色*/ border-left: 15px solid red; /*左边框*/ border-right: 5px dashed black;/*右边框:5像素,虚线,黑色*/ border-bottom: 10px dashed blue; /*底部边框*/ } TD, TH {/*定义单元格,行的样式*/ background: white; border: outset 5pt; horizontal-align: right; } CAPTION { /*定义表格标题的样式*/ border: ridge 5pt blue; border-top: ridge 10pt blue; } --></mce:style><style type="text/css" mce_bogus="1"> TABLE { background: blue; border-collapse: separate; /*设定了表格的边框模型*/ border-spacing: 10pt; /*边框间距*/ border-top: 15px solid red; /*顶部边框:15像素,实线,红色*/ border-left: 15px solid red; /*左边框*/ border-right: 5px dashed black;/*右边框:5像素,虚线,黑色*/ border-bottom: 10px dashed blue; /*底部边框*/ } TD, TH {/*定义单元格,行的样式*/ background: white; border: outset 5pt; horizontal-align: right; } CAPTION { /*定义表格标题的样式*/ border: ridge 5pt blue; border-top: ridge 10pt blue; } </style> <body> <table summary="jb51.net - Tables and CSS"> <caption>First Quarter Sales</caption> <thead> <tr> <thabbr="salesperson" scope="col">Person</th> <thabbr="sales" scope="col">Sales</th> </tr> </thead> <tbody> <tr> <td>Mr. Jin</td> <td>600.00</td> </tr> <tr> <td>Mr. Jones</td> <td>0000.00</td> </tr> <tr> <td>Ms. Williams</td> <td>0000.00</td> </tr> </tbody> <tfoot> <tr> <td colspan="2">Let's sale, sale, sale!</td> </tr> </tfoot> </table> </body> </html>