html5 支持表格吗,html5 – 在HTML 5中使用表格很好吗?

简单规则 – 使用表格表格数据,使用其他元素进行演示(使用CSS设计布局),如div,section,aside,nav等。这为他们所持有的内容提供了意义,而不是为所有内容使用表

事实是,开发人员在90年代使用了表格来绘制他们的布局,但现在,新的CSS3规范是惊人的,它让您如此坚持设计布局,如Flex Box,列数,框模型的行为可以通过使用盒子大小的属性,响应式设计越来越好使用@media查询,网格等。你不能用表格元素…实现,因此,表仅用于存储表格数据。

我看到很多开发人员有一个印象,表格应该被完全忽视,而是他们使用了很多div与100行CSS,应用display:table; table-cell table-row属性只是为了直接得到一个表。

所以即使在HTML5中,如果您使用表格表格数据,则完全可以。

Tables should not be used purely as a means to layout

document content as this may present problems when rendering to

non-visual media. Additionally,when used with graphics,these tables

may force users to scroll horizontally to view a table designed on a

system with a larger display. To minimize these problems,authors

should use 07001 to control layout rather than tables.

Tables should not be used as layout aids. Historically,many Web

authors have tables in HTML as a way to control their page layout

making it difficult to extract tabular data from such documents. In

particular,users of accessibility tools,like screen readers,are

likely to find it very difficult to navigate pages with tables used

for layout. If a table is to be used for layout it must be marked with

the attribute role="presentation" for a user agent to properly

represent the table to an assistive technology and to properly convey

the intent of the author to tools that wish to extract tabular data

from the document.

There are a variety of alternatives to using HTML tables for layout,primarily using CSS positioning and the CSS table model. 07003

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值