html设置table的边框基础
css代码
<style type="text/css"> .blacktab { background: none repeat scroll 0 0 #FFFFFF; border-collapse: collapse; margin-top: 15px; text-align: center; width: 100%; } .blacktab td,th { border: 1px solid #000000; font-size: 14px; height: 22px; line-height: 22px; padding: 4px 8px; } </style>
html中table的代码
<table width="100%" cellspacing="0" cellpadding="0" border="0" class="blacktab"> <tr> <th>网点名称</th> <th>网点位置</th> <th>营业时间</th> </tr> <tr> <td>1</td> <td>1</td> <td>1</td> </tr> <tr> <td>2</td> <td>2</td> <td rowspan="7">2</td> </tr> <tr> <td>3</td> <td>3</td> </tr> <tr> <td>4</td> <td>4</td> </tr> <tr> <td>5</td> <td>5</td> </tr> <tr> <td>6</td> <td>6</td> </tr> <tr> <td>7</td> <td>7</td> </tr> <tr> <td>8</td> <td>8</td> </tr> </table>
相关推荐
tianqi 2020-07-05
lyg0 2020-05-28
世樹 2020-11-11
SCNUHB 2020-11-10
bleach00 2020-11-10
FellowYourHeart 2020-10-05
momode 2020-09-11
思君夜未眠 2020-09-04
jessieHJ 2020-08-19
行吟阁 2020-08-09
表格的现在还是较为常用的一种标签,但不是用来布局,常见处理、显示表格式数据。在HTML网页中,要想创建表格,就需要使用表格相关的标签。<table> <tr> <td>单元格内的文字</td> ...
gufudhn 2020-08-09
末点 2020-08-03
nimeijian 2020-07-30
好记忆也需烂 2020-07-28
zlsdmx 2020-07-05
tomson 2020-07-05
onlykg 2020-07-04