CSS与HTML表格 [英] CSS versus HTML tables

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

问题描述

我想把我过于简朴的主页搞得一团糟,并开始使用我在几个博客上找到的一些CSS

模板。它在我的浏览器中看起来很好(IE

6.0),但它打印不正确。我测试了博客,一个肯定是

打印不正确。


调查网页,我的印象是CSS非常不可靠,因为

甚至更新的浏览器都无法正确实现标准。


那么应该避免使用CSS吗?或者,如果小心使用(例如我们

用于全局布局的HTML表格,以及用于字体

规格的CSS),它是否可以。

解决方案

sinister写道:

我想把我过于简单的斯巴达主页,并开始使用一些
CSS我在几个博客上找到的模板。它在我的浏览器中看起来很好
(IE 6.0),但它打印不正确。我测试了博客,其中一个肯定没有正确打印。


这有点模糊。也许你最好还是写一个平面媒体

特定的样式表。

调查网页,我的印象是CSS非常不可靠,因为
甚至更新浏览器无法正确实施标准。


他们的foboils不是很难解决。

那么一个人应该避免使用CSS吗?




或者如果小心使用(例如
我们用于全局布局的HTML表格,以及用于像字体
规格)。




首选使用CSS进行演示的各个方面。


-

David Dorward< http://dorward.me.uk/>


sinister写道:


你是一个巨魔,还是只是有人想要把头伸进狮子口?

我想要的为了解决我过于简朴的主页,并开始使用我在几个博客上找到的一些CSS模板。它在我的浏览器(IE
6.0)中看起来很好,但它打印不正确。我测试了博客,其中一个肯定没有打印好。

调查网页,我的印象是CSS非常不可靠,因为即使更新的浏览器也未能正确实施标准。


区分用于文章样式的CSS和用于页面的CSS

布局。前者既健全又有价值。后者是一个无能的系统。


关注点分离
http://www.barry.pearson.name/articl..._presentation/

那么一个人应该避免使用CSS吗?或者如果小心使用(例如我们的HTML表格用于全局布局,CSS用于字体
规范),它是否可以。




布局表被认为有价值
http:/ /www.barry.pearson.name/articles/layout_tables/


关于CSS定位的思考
http://www.barry.pearson.name/articl...ositioning.htm


-

Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/




" David Dorward" <做***** @ yahoo.com>在消息中写道

news:c0 ******************* @ news.demon.co.uk ...

sinister写道:

我想把我过于简朴的主页搞得一团糟,然后开始使用我在几个博客上找到的一些CSS模板。它在我的
浏览器(IE 6.0)中看起来很好,但它打印不正确。我测试了博客,其中一个肯定没有打印出来。
这有点模糊。也许你最好还是写一个平面媒体
特定的样式表。

测量网页,我的印象是CSS非常不可靠,因为
甚至更新浏览器无法正确实现标准。



他们的foboils不是很难解决。




很难看到这是真的,因为不同的浏览器在不同的地方打破了

标准。

那么应该避免使用CSS吗?

或者如果仔细使用(例如,我们的HTML表格用于全局布局,CSS用于字体
规范),它是否正常。



首选使用CSS进行演示的各个方面。




因为......?

-
David Dorward< http://dorward.me.uk/>


I wanted to spiff up my overly spartan homepage, and started using some CSS
templates I found on a couple of weblogs. It looks fine in my browser (IE
6.0), but it doesn''t print right. I tested the blogs, and one definitely
didn''t print right.

Surveying the web, my impression is that CSS is very unreliable, because
even updated browsers fail to implement the standards correctly.

So should one just avoid CSS? Or is it OK if used carefully (maybe e.g. us
HTML tables for "global" layout, and CSS for things like font
specifications).

解决方案

sinister wrote:

I wanted to spiff up my overly spartan homepage, and started using some
CSS templates I found on a couple of weblogs. It looks fine in my browser
(IE 6.0), but it doesn''t print right. I tested the blogs, and one
definitely didn''t print right.
That''s a bit vague. Perhaps you would be better off writing a print media
specific style sheet.
Surveying the web, my impression is that CSS is very unreliable, because
even updated browsers fail to implement the standards correctly.
Their foboils are not too difficult to work around.
So should one just avoid CSS?
No
Or is it OK if used carefully (maybe e.g.
us HTML tables for "global" layout, and CSS for things like font
specifications).



Its preferred that one uses CSS for all aspects of presentation.

--
David Dorward <http://dorward.me.uk/>


sinister wrote:

Are you a troll, or just someone who feels the urge to put your head into a
lion''s mouth?

I wanted to spiff up my overly spartan homepage, and started using
some CSS templates I found on a couple of weblogs. It looks fine in
my browser (IE
6.0), but it doesn''t print right. I tested the blogs, and one
definitely didn''t print right.

Surveying the web, my impression is that CSS is very unreliable,
because even updated browsers fail to implement the standards
correctly.
Distinguish between CSS used for article styling, and CSS used for page
layout. The former is sound and valuable. The latter is an incompetent system.

"Separation of concerns"
http://www.barry.pearson.name/articl..._presentation/
So should one just avoid CSS? Or is it OK if used carefully (maybe
e.g. us HTML tables for "global" layout, and CSS for things like font
specifications).



"Layout tables considered valuable"
http://www.barry.pearson.name/articles/layout_tables/

"Reflections on CSS Positioning"
http://www.barry.pearson.name/articl...ositioning.htm

--
Barry Pearson
http://www.Barry.Pearson.name/photography/
http://www.BirdsAndAnimals.info/
http://www.ChildSupportAnalysis.co.uk/



"David Dorward" <do*****@yahoo.com> wrote in message
news:c0*******************@news.demon.co.uk...

sinister wrote:

I wanted to spiff up my overly spartan homepage, and started using some
CSS templates I found on a couple of weblogs. It looks fine in my browser (IE 6.0), but it doesn''t print right. I tested the blogs, and one
definitely didn''t print right.
That''s a bit vague. Perhaps you would be better off writing a print media
specific style sheet.

Surveying the web, my impression is that CSS is very unreliable, because
even updated browsers fail to implement the standards correctly.



Their foboils are not too difficult to work around.



Hard to see how that''s true, given that different browsers break the
standard in different places.

So should one just avoid CSS?
No

Or is it OK if used carefully (maybe e.g.
us HTML tables for "global" layout, and CSS for things like font
specifications).



Its preferred that one uses CSS for all aspects of presentation.



Because...?


--
David Dorward <http://dorward.me.uk/>



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

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