表少了css设计还是表设计? [英] table less css design or tables design ?

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

问题描述

大家好,

您建议我使用什么?我的网站中少了表格还是基于表格的设计?

在此先感谢.

Hi all ,

What do you advice me to use ? table less or table based design in my websites ?

Thanks in advance.

推荐答案

部分取决于您要执行的操作,部分取决于个人喜好.一个简单的页面,顶部可能带有徽标,左侧或右侧是侧栏,然后是主要内容区域,非常适合用于表格.表格使保持内容分离和组织变得容易.

另一方面,使用CSS可以为您提供许多选项表所没有的东西.避免使用表来更好地实现元素的绝对定位,重叠的元素和动态内容,因为它们在这方面限制了您的选择.

当然,如果要显示表格数据,表是最好的方法,imo.

我个人经常在自己的自己的网站中使用表格.[ ^ ].我使用具有3行的2列表.最上一行具有colspan属性设置为2的一列.然后下一行具有2列,一列是左侧的窄边栏,另一列是页面主要内容的所在地.然后,底行也跨越2列,并包含页面的页脚.漂亮又简单.

我还建议您学习 PHP 的基础知识[include命令导入内容.
Depends partly on what you''re trying to do, and partly on personal preference. A simple page, with maybe a logo across the top, a left or right sidebar and then a main content area is well-suited for a table. And tables make it easy to keep content separated and organized.

On the other hand, using CSS gives you many options tables do not. Absolute positioning of elements, overlapping elements and dynamic content are better served by avoiding tables since they limit your options in this regard.

And of course if you''re displaying tabular data a table is the best way to go, imo.

I personally use tables a lot with my own site [^]. I use a 2-column table with 3 rows. The top row has one column with the colspan attribute set to 2. Then the next row has 2 columns, one being a narrow sidebar on the left and the other is home to the main content of the page. Then the bottom row also spans 2 columns and contains the page''s footer. Nice and simple.

I''d also recommend learning the basics of PHP[^]. Using the PHP "include" command allows you to base much of your site on templates you make yourself. Updating the site becomes much easier, and you''re still using plain old HTML, but with the include command to import content.


我的建议是如果您熟悉table-然后减少设计量,因为它具有许多优势.在表格设计中,我讨厌页面加载时间.

这里一堆仅供参考
13个CSS优于表格的原因网站设计 [无平板电脑网页设计 [从使用CSS的基于表的Web设计到无表的Web设计–第1部分:CSS基础 ="http://www.adobe.com/devnet/dreamweaver/articles/table_to_css_pt1.html" target ="_ blank" title =新窗口"> ^ ]
表布局与无表布局 [ Tableless CSS/XHTML Web设计技术的优点 [
My suggestion is If you are familiar with table-less design then go with that because it has many advantages. In table design I hate the page loading time.

Here a bunch FYI
13 Reasons Why CSS Is Superior to Tables in Website Design[^]
Tableless web design[^]
From table-based to tableless web design with CSS – Part 1: CSS Basics[^]
Tables-layout versus Tableless-layout[^]
Benefits of Table Less CSS/ XHTML Web Design Technology[^]


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

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