表格table,th,tr,td区分

<form action="query.do" method="post">

<table border="1" cellspacing="10" cellpadding="10" bgcolor="red">

<tr>

  <th align="left">首列</th>

</tr>

<tr>

  <td></td>//列

</tr>//行

</table>

</form>

注释:

table是表格,最外面包括着的标签。

tr是行,有几个就是几行,包括着td标签

td是列,有几个就是几列

th是加粗行的列的开头,同td的位置一样,都是被td包

border是table属性,代表边框,数字为0,就没有边框,数字越大,边框越宽

cellspacing是单元格之间的间距

cellpadding是单元格和外边框的距离

bgcolor是背景颜色

align是位置

posted @ 2018-08-17 11:23  God-Wang  阅读(1350)  评论(0编辑  收藏  举报