表和CSS的定位和设计 [英] Tables vs CSS for positioning and design

查看:89
本文介绍了表和CSS的定位和设计的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重复: 表而不是DIV
为什么不在HTML中使用表格布局?

我正在使用ASP .NET MVC构建Web应用程序(需要在IE 7,FF 3.0上运行),如果我是使用表而不是css来定位和设计?

I am working on building a web app using ASP .NET MVC (needs to run on IE 7, FF 3.0), does it matter if I were to use tables rather than css for positioning and design?


作为开发人员,我没有机会使用css。


As a developer I haven't had a chance to work with css.

推荐答案

是的,很重要。我使用的最有说服力的论据,表面上的CSS是屏幕阅读器(为视觉障碍)在表格布局。这本身就是一个很好的论证,但考虑到Google会像屏幕阅读器一样读取您的网站这一事实,它会更好一些。 如果您希望Google能够更轻松地为您的网站编制索引,请使用CSS进行布局。表格用于表格数据。

Yes, it matters. The most convincing argument that I've used in favor of CSS over tables is that screen readers (for the visually impaired) trip over tabular layout. That's a good argument by itself, but it gets a whole lot better when you take into account the fact that Google reads your web site just like a screen reader would. If you want Google to have an easier time indexing your site, use CSS for layout. Tables are for tabular data.

这篇关于表和CSS的定位和设计的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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