HTML标签以及属性列表第三章.docxVIP

  • 1
  • 0
  • 约小于1千字
  • 约 2页
  • 2023-12-06 发布于上海
  • 举报

第三章、表格

1:表格的基本属性:

table

tr

th 表头

/th

td 单元格

/td

/tr

/table2:表格边框:

Border: 默认值=0 在table标签中

Bordercolor: 表格边框颜色

3:扩展行和列:

rowspan

rowspan 行数

colspan 列数

通常放在td中

4:添加标题:

captionalign=top/bottom/left/right标题内容/caption5:表格格式、背景色、插入图片、

table align=left/right/center(位置) bgcolor=”…” (背景色)background=”…”(背景图片)/table

6:单元格内容对齐方式:

align

align 水平 right left center

valign 垂直top buttom middle

7:单元格间距和边距:

cellspacing

cellspacing 两个相邻单元格的距离

cellpadding 单元格内容和边框的距离

只能放在table中!

8:高级表格标签:Span:列数Cols:行数

文档评论(0)

1亿VIP精品文档

相关文档