您好,欢迎访问一九零五行业门户网

表格(TABLE)标记(TAGS)详细介绍_HTML/Xhtml_网页制作

表格的基本语法
...
- 定义表格
- 定义表行
- 定义表头
- 定义表元(表格的具体数据)带边框的表格:
复制代码
代码如下:
fooddrinksweet
a b c
food drink sweet
a b c
不带边框的表格:
复制代码
代码如下:
fooddrinksweet
a b c
food drink sweet
a b c
跨多行、多列的表元(table span)
跨多列的表元
复制代码
代码如下:
morning menu
food drink sweet
a b c
morning menu
food drink sweet
a b c
跨多行的表元
复制代码
代码如下:
morning menu
food a
drink b
sweet c
morning menu food a
drink b
sweet c
表格尺寸设置
边框尺寸设置:
复制代码
代码如下:
fooddrinksweet
a b c
food drink sweet
a b c
表格尺寸设置:
复制代码
代码如下:
fooddrinksweet
a b c
food drink sweet
a b c
表元间隙设置:
复制代码
代码如下:
fooddrinksweet
a b c
food drink sweet
a b c
表元内部空白设置:
复制代码
代码如下:
fooddrinksweet
a b c
food drink sweet
a b c
表格内文字的对齐/布局
#=left, center, right
复制代码
代码如下:
fooddrinksweet
a
b
c
food drink sweet
a b c
#=top, middle, bottom, baseline
复制代码
代码如下:
fooddrink
sweetother
a
b
c
d
food drink sweet other
a b c d
表格在页面中的对齐/布局(floating table)
复制代码
代码如下:
fooddrinksweet
a b c
my favorites...
cookies, chocolates, and more. food drink sweet
a b c
my favorites...
cookies, chocolates, and more.
food drink sweet
a b c
my favorites...
cookies, chocolates, and more.
#=space value
复制代码
代码如下:
fooddrinksweet
a b c
my favorites...
cookies, chocolates, and more. food drink sweet
a b c
my favorites...
cookies, chocolates, and more.
表格的标题
... #=left, center, right
复制代码
代码如下:
lunch
fooddrinksweet
a b c
lunch
food drink sweet
a b c
... #=top, bottomvalign=top is default.
复制代码
代码如下:
lunch
fooddrinksweet
a b c
food drink sweet
a b c
lunch
其它类似信息

推荐信息