html中表格的页眉页脚,HTML 表格

1、表格和边框属性

Row 1, cell 1Row 1, cell 2

2、表格的表头

表头:
HeadingAnother Heading
row 1,cell1row 1,cell2
row 2,cell1row 2,cell2
垂直的表头:
姓名Bill Gates
电话55577854
地址上海

3、表格中的空单元格

row 1,cell1row 1,cell2
 row 2,cell2

4、表格的标题

我的标题
Row 1, cell 1Row 1, cell 2

5、跨行和跨列的单元格

横跨两列的单元格:
姓名电话
Bill Gates5557785455577855
横跨两行的单元格:
姓名Bill Gates
电话55577854
55577855

6、表格内的标签

这是一个段落。

这是另一个段落。

这个单元包含一个表格:

ab
cd

这个单元包含一个列表:

  • 苹果
  • 香蕉
  • 菠萝
HELLO

7、单元格边距

使用 Cell padding 来创建单元格内容与其边框之间的空白。

没有 cellpadding:
FirstRow
SecondRow
带有 cellpadding:
FirstRow
SecondRow

8、单元格间距

使用 Cell spacing 增加单元格之间的距离。

没有 cellspacing:
FirstRow
SecondRow
带有 cellspacing:
FirstRow
SecondRow

9、向表格添加背景颜色或背景图像

背景颜色:
FirstRow
SecondRow
背景图像:
FirstRow
SecondRow

10、向表格单元格添加背景颜色或背景图像

单元背景:
FirstRow
SecondRow

11、在表格单元格中排列内容

消费项目一月二月
衣服$241.10$50.20
化妆品$30.00$44.45
食物$730.40$650.00
总计$1001.50$744.65

12、框架(from)属性

Table with frame="box":

MonthSavings
January$100

Table with frame="above":

MonthSavings
January$100

Table with frame="below":

MonthSavings
January$100

Table with frame="hsides"

MonthSavings
January$100

Table with frame="vsides"

MonthSavings
January$100

13、表格的页眉、主体、页脚

thead {color: green}

tbody {color: blue;height: 50px}

tfoot {color: red}

MonthSavings

January$100February$80Sum$180
  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值