Divs与表格数据的表格 [英] Divs vs tables for tabular data

查看:115
本文介绍了Divs与表格数据的表格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是的,另一个divs vs表的问题...

Yes, another divs vs tables questions...

我读过所有的尝试使用divs而不是表,但我有一个应用程序显示表格的数据,基本上我的整个Web应用程序显示表(具有不同的列和数据),但一切都是表格...我应该使用strugle使用div?如果是,为什么?

I read all over the place that "try to use divs instead of tables", but I have an application that displays data that is tabular, basically my entire web application displays tables (with different columns and data) but everything is tabular... Should I use strugle to use divs? If yes, why?

推荐答案

对表格数据使用表。当它们仅用于布局目的时,对表的敲击已经发生。他们有自己的目的,它是表格数据。 Div没有语义含义,不应用于表格数据。

Use tables for tabular data. The knock against tables has been when they've been used solely for layout purposes. They have their own purpose, and it's tabular data. Divs have no semantic meaning, and shouldn't be used for tabular data.

这篇关于Divs与表格数据的表格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆