tablles vs css [英] tablles vs css

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

问题描述

如果已经做好了已经死亡的话,请道歉...


我多年来一直是一名webdev,我已经掌握了艺术或

布局与表格。我现在看到许多新手在桌面布局上使用了b / b
技术支持CSS布局技术。


当DIV和图层首次出现时,它们得不到支持,

严重退化并受到同样的怀疑,即框架

被对待。


所以问题是这个...

我现在应该使用CSS和DIVS以及层而不是表来做我的布局吗?我知道CSS可以更好地阅读代码,这可能会对搜索引擎有所帮助,但这足以超出

问题吗?实际上有没有问题?

我真的不相信桌面布局有问题,因为它已经被广泛使用多年了。


任何受过良好教育的想法都会很棒,特别是那些在我身边或曾经处于我身边的人。


干杯

解决方案



Tim写道:

道歉,如果这是已经死了...
在某种程度上,是的。

但我相信我们中的一些人不会再介意再次讨论,这是一个/>
有趣的问题。

我已经成为webdev多年了,我已经掌握了艺术或
布局与表格。我现在看到许多新手使用表格布局技术来支持CSS布局技术。
哈,很有趣你应该想一想,我最多注意到很多新手

想要使用FRAMES。

原因不明。

当DIV和图层首次出现时,它们得不到很好的支持,严重退化,并且对框架
的处理方式持怀疑态度。
仍然记住你,框架是坏的,不应该用于布局。

虽然它们可以,但是需要做更多的工作才能做到正确。

所以问题是这个......
我现在应该使用CSS和DIVS以及层而不是表来做我的布局吗?我知道CSS可以更好地阅读代码,这可能对搜索引擎有所帮助,但这足以说明问题的重要性吗?事实上是否存在任何问题?
我不能真正相信桌面布局存在问题,因为它已被广泛使用多年。

任何有教育意义的想法会很棒,特别是来自那些已经或曾经在我身边的人。

干杯



嗯,这是我的两个自己的例子,我的旧网站,
http://freewebdesign.cjb .cc / design-tips.html

用桌子和一些风格制作和他们的。

但是,我们有了我的新网站, http://freewebdesign.cjb.cc

div'制作和CSS,没有HTML样式,例如新的

网站中的旧布局标签。

我希望有帮助。

-

关心乍得。 http://freewebdesign.cjb.cc


文章< 11 ********************* @ c74g2000cwc.googlegroups。 com>,

" Tim" <次************ @ gmail.com>写道:

道歉,如果已经完成死亡......

我已经成为webdev多年了,我已经掌握了艺术或
布局与表格。我现在看到很多新手都在使用表布局技术来支持CSS布局技术。

当DIV和图层首次出现时,它们得不到很好的支持,降级严重,并且受到了框架
受到同样的怀疑。

所以问题是这个......
我现在应该使用CSS和DIVS以及层而不是表来做我的布局?我知道CSS可以更好地阅读代码,这可能对搜索引擎有所帮助,但这足以说明问题的重要性吗?事实上是否存在任何问题?
我不能真正相信桌面布局存在问题,因为它已被广泛使用多年。

任何有教育意义的想法会很棒,特别是那些在我身边或曾经处于我身边的人。


你好蒂姆,

IMO你在一些误解下工作。这是我的看法:

- 不仅仅是新人在桌面布局上提倡CSS。很长一段时间以来,很多人都在鼓吹这一点。我在8年(?)年左右没有使用

基于表格的布局,我不会认为

我自己的前沿。

- DIV多年来一直得到很好的支持; <层>标签是并且是一个

专有的Netscape扩展。

- 是的,表格布局已经使用了多年,但这并不意味着它是

必然是最好的解决方案。流血患者去除生病的幽默

被用作医疗技术已有很长一段时间了,但我不认为我们会把它作为一种医疗技术。今天的品质标志。 =)


我认为使用好的CSS和有效的HTML就像用一个人的母语一样使用好的单词拼写和语法。一旦你习惯它,它就会很容易地流动,而其他任何东西都很奇怪。反过来也是如此

- 如果你已经学会了不良习惯(比如基于表格的布局),那么这些将需要一段时间才能打破并且在此期间CSS似乎是一个问题

你会希望你可以回到你习惯的东西。


回答你的具体问题:我现在应该使用CSS和DIVS以及层而不是表来做我的布局吗?


CSS和DIV,是的。 < layer> s,no。我还要在是中添加有效的HTML 4.01 Strict

清单。

我知道CSS可以更好地阅读代码,这可能对搜索引擎有所帮助,但这是否足以超出问题?实际上有没有问题?




恕我直言,CSS更优雅,更强大,但也更抽象。即使是现代浏览器,它也没有得到完全的支持(IE6是最明显的例子)。但鉴于CSS比基于表格的布局要复杂得多,所以支持它并不令人意外,因为它还不完美。但是对于布局,将CSS与表格进行比较就像是将工匠的工具集与棒球棒进行比较。即使缺少一些工具

,前者仍然更有能力。


如果您不相信,请查看CSS Zen Garden

http://www.csszengarden.com/ )用于演示CSS的强大功能。

有关更实际的示例,您可以查看我的网站(请参阅我的

sig)。它没有禅宗花园的神奇之美,但它确实使用DIV和CSS进行布局。如果你能找到两个奖金积分

< table>网站上的标签(提示:它们都用于表格数据)。


HTH


-

Philip
http://NikitaTheSpider.com/

批量HTML验证,链接检查等等


谢谢你们...


我担心我会得到一些''CSS fanboy''回复,或者说一些关于

的垃圾我是如何违反usenet礼仪的 - 所以我很高兴看到一些有用的

并且构造得很好回复。


欢呼


Tim


apologies if this has been done to death already...

I have been a webdev for many years now, and I have mastered the art or
layout with tables. I now see many newcomers rubbishing table layout
techniques in favour of CSS layout techniques.

When DIVs and layers first became available they were poorly supported,
degraded badly and were treated with the same scepticism that frames
were treated with.

So the question is this...
Should I now be using CSS and DIVS and layers instead of tables to do
my layouts? I know that CSS makes nicer to read code and this could
potentially help search engines, but is this enough to out-weigh the
problems? Are there in fact any problems?
I can''t really believe that table layout is problematic as it has been
used extensively for many years.

Any educated thoughts on this would be great, particularly from those
who are in, or have been in my situation.

Cheers

解决方案


Tim wrote:

apologies if this has been done to death already... To an extent, yes it has.
But I am sure some of us won''t mind chating about again, it''s an
interesting issue.

I have been a webdev for many years now, and I have mastered the art or
layout with tables. I now see many newcomers rubbishing table layout
techniques in favour of CSS layout techniques. Ha, funny you should think that, I have most noticed a lot of newbies
wanting to use FRAMES.
For some unknown reason.

When DIVs and layers first became available they were poorly supported,
degraded badly and were treated with the same scepticism that frames
were treated with. Still are mind you, frames are bad and should never be used for layout.
Although they can be, but it takes a lot more work to get it right.

So the question is this...
Should I now be using CSS and DIVS and layers instead of tables to do
my layouts? I know that CSS makes nicer to read code and this could
potentially help search engines, but is this enough to out-weigh the
problems? Are there in fact any problems?
I can''t really believe that table layout is problematic as it has been
used extensively for many years.

Any educated thoughts on this would be great, particularly from those
who are in, or have been in my situation.

Cheers


Well, here are two of my own examples, my old site,
http://freewebdesign.cjb.cc/design-tips.html
Made with Tables and some styleing here and their.
But, then we have my new site, http://freewebdesign.cjb.cc made with
div''s and CSS, with no HTML styleing eg old layout tags in that new
site at all.
I hope that helps.
--
Regards Chad. http://freewebdesign.cjb.cc


In article <11*********************@c74g2000cwc.googlegroups. com>,
"Tim" <Ci************@gmail.com> wrote:

apologies if this has been done to death already...

I have been a webdev for many years now, and I have mastered the art or
layout with tables. I now see many newcomers rubbishing table layout
techniques in favour of CSS layout techniques.

When DIVs and layers first became available they were poorly supported,
degraded badly and were treated with the same scepticism that frames
were treated with.

So the question is this...
Should I now be using CSS and DIVS and layers instead of tables to do
my layouts? I know that CSS makes nicer to read code and this could
potentially help search engines, but is this enough to out-weigh the
problems? Are there in fact any problems?
I can''t really believe that table layout is problematic as it has been
used extensively for many years.

Any educated thoughts on this would be great, particularly from those
who are in, or have been in my situation.
Hi Tim,
IMO you''re laboring under a few misconceptions. Here''s my take:
- It''s not only newcomers who advocate CSS over table layout. A lot of
people have been advocating this for a long time. I have not used a
table-based layout in eight(?) years or so, and I wouldn''t consider
myself bleeding edge.
- DIVs have had good support for years; the <layer> tag was and is a
proprietary Netscape extension.
- Yes, table layout has been used for years, but that doesn''t mean it is
necessarily the best solution. Bleeding patients to remove "ill humours"
was used as a medical technique for a long time but I don''t think any of
us would take that as a mark of quality today. =)

I think that using good CSS and valid HTML are a lot like using good
spelling and grammar in one''s native tongue. Once you get used to it, it
flows easily and anything else seems strange. The reverse is also true
-- if you''ve learned bad habits (like table-based layout), those will
take a while to break and in the meantime CSS will seem like a problem
and you''ll wish you could go back to what you''re used to.

To answer your specific questions: Should I now be using CSS and DIVS and layers instead of tables to do
my layouts?
CSS and DIVs, yes. <layer>s, no. I would also add valid HTML 4.01 Strict
to the "yes" list.
I know that CSS makes nicer to read code and this could
potentially help search engines, but is this enough to out-weigh the
problems? Are there in fact any problems?



IMHO, CSS is more elegant and powerful but also more abstract. It also
hasn''t got complete support across even the modern browsers (IE6 being
the most glaring example). But given that CSS is far more sophisticated
than table-based layout, it''s not a surprise that support for it is
imperfect as of yet. But for layout, comparing CSS to tables is like
comparing a craftman''s toolset to a baseball bat. Even if a few tools
are missing, the former is still much more capable.

If you''re not convinced, check out the CSS Zen Garden
(http://www.csszengarden.com/) for a demonstration of the power of CSS.
For a more practical example, you can have a look at my site (see my
sig). It''s not got the whiz-bang beauty of the Zen Garden, but it does
use DIVs and CSS for layout. Bonus points if you can find the two
<table> tags on the site (hint: they''re both used for tabular data).

HTH

--
Philip
http://NikitaTheSpider.com/
Bulk HTML validation, link checking and more


thanks guys...

I was worried I would get some ''CSS fanboy'' replies, or some junk about
how I''ve violated usenet etiquette - so I''m pleased to see some useful
and well constructed replies.

cheers

Tim


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

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