DIV's vs. Tables或CSS vs. Being Stupid [英] DIV's vs. Tables or CSS vs. Being Stupid

查看:105
本文介绍了DIV's vs. Tables或CSS vs. Being Stupid的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道表用于表格数据,但是使用它们进行布局是很诱人的。我可以处理DIV的三列布局,但是当你有4个嵌套的DIV,它变得棘手。

I know that tables are for tabular data, but it's so tempting to use them for layout. I can handle DIV's to get a three column layout, but when you got 4 nested DIV's, it get tricky.

有没有教程/引用说服我使用DIV的布局?

Is there a tutorial/reference out there to persuade me to use DIV's for layout?

使用DIV,但我拒绝花一个小时来放置我想要的DIV / SPAN。

I want to use DIV's, but I refuse to spend an hour to position my DIV/SPAN where I want it.

@ GaryF: Blueprint CSS 必须是CSS最好的秘密。

@GaryF: Blueprint CSS has to be the CSS's best kept secret.

伟大的工具 - Blueprint Grid CSS Generator

推荐答案

Yahoo Grid CSS 可以执行各种操作。

There's the Yahoo Grid CSS which can do all sorts of things.

但请记住: CSS不是宗教。如果您通过使用表而不是css来保存小时,请这样做。

But remember: CSS IS NOT A RELIGION. If you save hours by using tables instead of css, do so.

我永远不会忘记的角色之一是表单。我喜欢在css中做,但它只是比表复杂得多。

One of the corner cases I could never make my mind up about is forms. I'd love to do it in css, but it's just so much more complicated than tables.

您甚至可以认为表单是表,因为它们有标题(标签)和数据(输入字段)。

You could even argue that forms are tables, in that they have headers (labels) and data (input fields).

这篇关于DIV's vs. Tables或CSS vs. Being Stupid的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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