html5表格中加空表格,<tr> - 表格中的行 - html5表格内容

HTML

元素定义表格中的行。它们可以是和元素的组合。

浏览器支持1878cdc442c78be424141e8d23fcc3f4.gif97025d18480c559ff507c6e3a9b8aac8.gif6f7088d28d6f7ea604e66cfba3b1e71d.gifbe610315b796c1b1d41a4e5496e268a7.gif2a97a8c5460fd66b35928591ac5b9c39.gif

所有浏览器都支持

示例

cell acell b
内容分类None

允许的内容零个或多个

标签省略开始标记是必填项。如果该

元素紧随其后,或者父表组(或)元素不再具有任何内容

允许的ARIA角色任意

DOM接口HTMLTableRowElement

属性

表格标签支持全局特性。还有一些过期的特性,你应该避免使用它们,但是可以了解它们,会在你阅读旧代码的时候有所帮助。alignTHML5中废弃,THML5中废弃

This enumerated attribute specifies how horizontal alignment of each cell content will be handled. Possible values are:left, aligning the content to the left of the cells

center, centering the content in the cells

right, aligning the content to the right of the cells

justify, widening the spaces in the textual content so that the content is justified in the cells

char, aligning the textual content on a special character with a minimal offset, defined by thecharandcharoffattributes未实现(查看bug2212)

If this attribute is not set, the parent node's value is inherited.THML5中废弃。此功能已过时。尽量避免使用它。charTHML5中废弃,THML5中废弃

This attribute is used to set the character to align the cells in a column on. Typical values for this include a period(.)when attempting to align numbers or monetary values.Ifalignis not set tochar, this attribute is ignored.THML5中废弃。此功能已过时。尽量避免使用它。valignTHML5中废弃,THML5中废弃

This attribute specifies the vertical alignment of the text within each row of cells of the table header. Possible values for this attribute are:baseline, which will put the text as close to the bottom of the cell as it is possible, but align it on thebaselineof the characters instead of the bottom of them. If characters are all of the size, this has the same effect asbottom.

bottom, which will put the text as close to the bottom of the cell as it is possible;

middle, which will center the text in the cell;

andtop, which will put the text as close to the top of the cell as it is possible.Note:Do not use this attribute as it is obsolete(and not supported)in the latest standard: instead set the CSSvertical-alignproperty on it.

定义和用法

标签定义表格中的行。

HTML 4.01 与 HTML 5 之间的差异

在 HTML 5 中,不支持

标签的任何属性。

实例

一个简单的 HTML 表格,包含两列两行:

monthsavings
january$100
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值