Go homepage(回首页) Upload pictures (上传图片) Write articles (发文字帖)
The author:(作者)归海一刀published in(发表于) 2014/3/30 5:20:06 九 表格 Tables_[Html教程]
现在的互联网,HTML表格被滥用于网页布局。正确的表格用法是用于构建表格数据。
表格有许多标签,初学就要完全掌握它们比较困难,这里先讲简单的。
粘贴下面代码:
Row 1, cell 1 Row 1, cell 2 Row 1, cell 3 Row 2, cell 1 Row 2, cell 2 Row 2, cell 3 Row 3, cell 1 Row 3, cell 2 Row 3, cell 3 Row 4, cell 1 Row 4, cell 2 Row 4, cell 3
table元素定义表格。
table
tr元素定义表格的行数。
tr
td元素定义数据单元。它必须在tr标签里面。
td
如果你要做3x4表格,拥有12个单元,应该有四个tr元素定义行,每行有三个td元素。
赞