DIV vs TABLE [英] DIV vs TABLE

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

问题描述

大家好


我最近听说使用DIV代替桌子铺设你的页面

是前进的方向。


任何人都可以给我一个很好的理由为什么我应该使用DIV,我认为他们是个人在背后的痛苦,并且永远无法真正理解我的头脑。 >
他们。


有什么好处?我必须使用它们吗?如果是这样,为什么?怎么会影响我开发的任何新网站?


谢谢所有

Kev

Hi all

I heard recently that using DIVs instead of Tables for laying out your page
was the way forward.

Can anyone give me a good reason why I should use DIVs, I think they''re are
pain in the backside personally and can never really get my head around
them.

What are the advantages? Do I HAVE to use them? If so, why? How will it
affect any new sites I develop?

Thanks all
Kev

推荐答案

选择适合您需求的产品。 DIV的一个优点是它允许在使用列布局时重新排序列。


尝试例如:
http://www.csszengarden.com/


我承认对于我们这些凡人而言,它可能有点过分......


-

Patrice


" Mantorok" <毫安****** @ mantorok.com> écritdansle message de news:

e2 ********** @ newsfeed.th.ifl.net ...
Just pick what fits your needs. An advantage for DIVs is that it allows to
reorder columns when using a column layout.

Try for example :
http://www.csszengarden.com/

I admit it''s likely overkill for us mere mortals...

--
Patrice

"Mantorok" <ma******@mantorok.com> a écrit dans le message de news:
e2**********@newsfeed.th.ifl.net...
大家好/>
我最近听说使用DIV而不是桌子来布置你的页面是前进的方向。

任何人都可以给我一个很好的理由为什么我应该使用DIV,我认为他们是个人背后的痛苦,并且永远无法真正了解他们。

有什么好处?我必须使用它们吗?如果是这样,为什么?它将如何影响我开发的任何新网站?

谢谢所有
Kev
Hi all

I heard recently that using DIVs instead of Tables for laying out your
page was the way forward.

Can anyone give me a good reason why I should use DIVs, I think they''re
are pain in the backside personally and can never really get my head
around them.

What are the advantages? Do I HAVE to use them? If so, why? How will it
affect any new sites I develop?

Thanks all
Kev



表格是仍然完全可以接受显示

a表格布局格式的布局元素,实际上可以比具有这种

布局的div更好。但是,由于同样的原因,div更灵活 - 它们没有

将布局限制为表格格式。相反,div就像一个浮动

框。可以放在你想要的任何地方。 Patrice'的结果是

csszengarden.com是我所知道的关于div的力量的最好的例子

的布局。每个页面都是相同的内容,使用不同的样式表

应用。


这意味着您可以在不触及的情况下更改网页的外观>
任何内容。


-

HTH,


Kevin Spencer

Microsoft MVP

专业Numbskull


努力工作是一种药物,

没有安慰剂。


" Mantorok" <毫安****** @ mantorok.com>在留言中写道

新闻:e2 ********** @ newsfeed.th.ifl.net ...
Tables are still quite acceptable for displaying layout elements that are in
a tabular layout format, and in fact can be better than divs with such
layout. However, divs are more flexible for the same reason - they do not
restrict the layout to tabular format. Instead, a div is like a "floating
box" that can beo positioned anywhere you want. Patrice''s linke to
csszengarden.com is the best example I know of regarding the power of divs
for layout. Every page is the same content with a different style sheet
applied.

This means that you can change the look of your web pages without touching
any of the content.

--
HTH,

Kevin Spencer
Microsoft MVP
Professional Numbskull

Hard work is a medication for which
there is no placebo.

"Mantorok" <ma******@mantorok.com> wrote in message
news:e2**********@newsfeed.th.ifl.net...
大家好
<我最近听说使用DIV而不是桌子来布置你的页面是前进的方向。

任何人都可以给我一个很好的理由为什么我应该使用DIV,我认为他们'
背后是个人的痛苦,并且永远不会真正得到他们的感觉。

有什么好处?我必须使用它们吗?如果是这样,为什么?它将如何影响我开发的任何新网站?

谢谢所有
Kev
Hi all

I heard recently that using DIVs instead of Tables for laying out your
page was the way forward.

Can anyone give me a good reason why I should use DIVs, I think they''re
are pain in the backside personally and can never really get my head
around them.

What are the advantages? Do I HAVE to use them? If so, why? How will it
affect any new sites I develop?

Thanks all
Kev



我认为这个着名的网站说得很清楚。如果你不是一个设计师而不是一个

程序员,那就选择带有css的div。如果你更像一个程序员,坚持使用

表,并为设计师留下div。


Eliyahu


Patrice < SC **** @ chez.com>在消息中写道

news:ul ************** @ TK2MSFTNGP03.phx.gbl ...
I think this famous site makes it clear. If you are more a designer than a
programmer, go for divs with css. If you are more a programmer, stick with
the tables and leave the divs for the designers.

Eliyahu

"Patrice" <sc****@chez.com> wrote in message
news:ul**************@TK2MSFTNGP03.phx.gbl...
选择适合您的需要。 DIV的一个优点是它允许在使用列布局时对列重新排序。

尝试例如:
http://www.csszengarden.com/

我承认这对我们凡人来说可能有点过头了。 。

-
Patrice

Mantorok <毫安****** @ mantorok.com> écritdansle message de news:
e2 ********** @ newsfeed.th.ifl.net ...
Just pick what fits your needs. An advantage for DIVs is that it allows to
reorder columns when using a column layout.

Try for example :
http://www.csszengarden.com/

I admit it''s likely overkill for us mere mortals...

--
Patrice

"Mantorok" <ma******@mantorok.com> a écrit dans le message de news:
e2**********@newsfeed.th.ifl.net...
大家好

任何人都可以给我一个很好的理由为什么我应该使用DIV,我认为他们' '
是个人背后的痛苦,并且永远不会真正得到我的头。

有什么好处?我必须使用它们吗?如果是这样,为什么?它将如何影响我开发的任何新网站?

感谢所有
Kev
Hi all

I heard recently that using DIVs instead of Tables for laying out your
page was the way forward.

Can anyone give me a good reason why I should use DIVs, I think they''re
are pain in the backside personally and can never really get my head
around them.

What are the advantages? Do I HAVE to use them? If so, why? How will it
affect any new sites I develop?

Thanks all
Kev




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

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