单元格样式


<
html> <head> <title></title> <style type="text/css"> .table { width: 100%; padding: 0; margin: 0; } th { font: bold 12px "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif; border-right: 1px solid #000; border-bottom: 1px solid #000; border-top: 1px solid #000; letter-spacing: 2px; text-transform: uppercase; text-align: left; padding: 6px 6px 6px 12px; } td { border-right: 1px solid #000; border-bottom: 1px solid #000; background: #fff; font-size:14px; padding: 6px 6px 6px 12px; } th.spec,td.spec { border-left: 1px solid #000; } </style> </head> <body> <table class="table" cellspacing="0" summary="The technical specifications of the Apple PowerMac G5 series"> <tr> <th class="spec">选择</th> <th>课程名称</th> <th>课程编号</th> <th>已经考试次数</th> </tr> <tr> <td class="spec">1</td> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td class="spec">2</td> <td>2</td> <td>2</td> <td>2</td> </tr> <tr> <td class="spec">3</td> <td>3</td> <td>3</td> <td>3</td> </tr> </table> </body> </html>
选择课程名称课程编号已经考试次数
1 1 1 1
2 2 2 2
3 3 3 3
原文地址:https://www.cnblogs.com/30go/p/5447967.html