过时的CSS人员需要最新的CSS建议!! [英] Out-of-date CSS person needs up-to-date CSS advice!!

查看:57
本文介绍了过时的CSS人员需要最新的CSS建议!!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,


我可耻地承认自己是一名古老的网页设计师,从

CSS之前开始。在那些令人兴奋的日子里,桌子是王者,并且用于每种可能的对齐方式。当CSS出现时,

为一个中心位置的站点指定颜色和字体很有用,但

因为穷人而无法进行任何真正的设计工作浏览器

支持。我很好地使用了CSS来处理颜色和字体,但是在使用表格进行布局时还带了




我最近遇到了 www.csszengarden.com 并且完全惊讶于

你可以用CSS单独做这些事情。我完全在重新思考我的页面布局方法,但需要一些帮助。我在那里查看了CSS

,并且在我发现的其他几个网站上,但还没有

让图片完全清晰。 />

那么,对于某些背景材料的任何建议会让我起床

到目前为止?我在亚马逊周围进行了搜索,发现了三本看起来很有趣的书,CSS Zen Garden一本,更多Eric Meyer on CSS。和

层叠样式表明确指南 (也是Eric Meyer)。


对这本书的选择有何评论?记住,我确实对基本的CSS有一个很好的理解,所以我不需要任何东西来获得一个完整的

初学者,但我显然错过了很多图片,所以我需要一些东西,呃,一个完整的初学者!!


另外,有没有我可以使用的在线资源?我更喜欢书籍

它更容易在纸上阅读,但我也希望看到一些在线

材料。

最后,现代浏览器对CSS的支持有多好?我只看了IE6中的这些网站,我不打扰其他浏览器(虽然我很确定

他们没事)。 CSS是否仍然是以你的方式工作的主要挑战

围绕浏览器的不足?


感谢您的任何评论。


-

Alan Silver

(此行下面添加的任何内容都与我无关)

解决方案

Alan Silver< al ********* @ nospam.thanx>写道:

我最近遇到了 www.csszengarden.com 并且完全惊讶于你可以单独用CSS做这些事情。我完全在重新思考我的页面布局方法,但需要一些帮助。我已经在那里查看了CSS,并且在我发现的其他几个网站上,但还没有完全清楚地说明这一点。




我常见的csszengarden咆哮:


CSS2相当不灵活,许多风格和布局更改需要对标记进行

更改。特别是如果IE5'的CSS支持不佳,那么CSS
被认为是CSSZengarden的基准。 CSS

选择器是CSS中唯一可以标记为灵活的部分,CSS2

选择器并不是特别强大,IE不支持很多

无论如何。


CSS的既定目标之一是分离内容和样式。这个

是一个相当低的目标。更高的目标是将标记代码

与样式和布局分开。 CSS2在从样式中分离

标记代码方面表现不佳,并且它没有真正支持创建页面

布局(浮点数,定位和css表格不合适并且

用于创建高质量布局的工具不足。


推动CSS可以实现的重大改变标记

代码需要,这引入了巨大的不灵活性。 CSSZengarden是一个极端的例子,它使用了大量的类,id',

div和spans来创造CSS足够灵活的错觉

从根本上改变一个网站的外观,它不是。


CSSZengarden被大多数观看者误解了。它确实没有证明CSS的强大功能,相反它是一种怪诞的

虚假陈述CSS的功能,绝对不是
的东西被模仿。


-

Spartanicus


>>我最近遇到过 www.csszengarden.com 并对

你可以单独用CSS做这些事情。我完全在重新思考我的页面布局方法,但需要一些帮助。我已经在那里查看了CSS,并且在我发现的其他几个网站上,但还没有完全清楚地说明这一点。




< snip>


好​​的,我来这里接受教育; - )


我听到你在说什么,但我不清楚

的方向我应该继续。我对现在有用的东西感兴趣,而不是可能是什么。我以网页设计为生,需要依靠那些可以使用

的浏览器。


我应该在哪里寻找教育如何分开尽可能多的今天?b $ b实用?目前,我的编码仍然混合了很多内容,因为它使用表格。我想改进

那个。我该怎么做呢。


感谢您的回复。您的进一步评论将不胜感激。


-

Alan Silver

(此行下方添加的任何内容均与此无关me)


Alan Silver< al ********* @ nospam.thanx>写道:

我应该在哪里寻找关于如何分开的教育今天实用?




采取其他人的建议是值得怀疑的。


对我有用的是多年来我的头撞在桌子上要求

为什么这不是我想要/期望的吗?,再加上一遍又一遍地阅读

规范,多年的经验来了解

浏览器错误和hacks,并在这里闲逛。


YMMV


-

Spartanicus


Hello,

I shamefully admit to be an old web designer, from before the days of
CSS. In those heady days, tables were king and were used for every
possible kind of alignment. When CSS came along, it was useful for
specifying colours and fonts for a site in one central location, but
useless for any real kind of design work due to the poor browser
support. I got well in to using CSS for colours and fonts, but carried
on using tables for layout.

I recently came across www.csszengarden.com and was totally amazed that
you could do such things with CSS alone. I am completely rethinking my
approach to page layout, but need some help. I have looked at the CSS
there, and at a fair few other sites I have found since, but haven''t yet
got the picture completely clear.

So, any suggestions for some background material that will bring me up
to date? I have trawled around Amazon and found three books that look
interesting, the CSS Zen Garden one, "More Eric Meyer on CSS" and
"Cascading Style Sheets the Definitive Guide" (also by Eric Meyer).

Any comments on this choice of books? Remember, I do have a good
understanding of basic CSS, so I don''t need anything for a complete
beginner, but I am obviously missing quite a lot of the picture, so I
need something for, erm, a complete beginner!!

Also, are there any on-line resources that I can use? I prefer books as
it''s easier to read on paper, but I would also like to see some on-line
material.

Finally, how good is modern browser support for CSS? I only looked at
those sites in IE6, I don''t bother in other browsers (although I''m sure
they were fine). Is CSS still a major challenge of working your way
around browser deficiencies?

Thanks for any comments.

--
Alan Silver
(anything added below this line is nothing to do with me)

解决方案

Alan Silver <al*********@nospam.thanx> wrote:

I recently came across www.csszengarden.com and was totally amazed that
you could do such things with CSS alone. I am completely rethinking my
approach to page layout, but need some help. I have looked at the CSS
there, and at a fair few other sites I have found since, but haven''t yet
got the picture completely clear.



My usual csszengarden rant:

CSS2 is rather inflexible, many stylistic and layout changes require a
change to the markup. Particularly so if IE5''s poor CSS support is
considered as the benchmark as is the case with CSSZengarden. CSS
selectors is the only part of CSS that can be labeled as flexible, CSS2
selectors are not particularly powerful, and IE doesn''t support many of
them anyway.

One of the stated aims of CSS is to separate content and styling. This
is a rather lowly aim. The higher aim is to separate the markup code
from the styling and the layout. CSS2 does a poor job in separating
markup code from styling, and it has no real support for creating page
layouts (floats, positioning and css tables are inappropriate and
woefully inadequate tools for creating a quality layout).

To push what can be achieved with CSS significant changes to the markup
code are needed, this introduces massive inflexibility. CSSZengarden is
an extreme example of this, it uses copious amounts of classes, id''s,
divs and spans to create the illusion that CSS is flexible enough to
radically change the look of a site, it isn''t.

CSSZengarden is misunderstood by most of the people who view it. It does
not demonstrate the power of CSS, instead it''s a grotesque
misrepresentation of the capabilities of CSS, and definitely not
something to be emulated.

--
Spartanicus


>>I recently came across www.csszengarden.com and was totally amazed that

you could do such things with CSS alone. I am completely rethinking my
approach to page layout, but need some help. I have looked at the CSS
there, and at a fair few other sites I have found since, but haven''t yet
got the picture completely clear.



My usual csszengarden rant:


<snip>

OK, I''m here to be educated ;-)

I hear what you are saying, but am no clearer as to the direction in
which I should proceed. I am interested in what works now, not what may
be. I do web design for a living and need to rely on what will work with
the browsers that are out there.

Where should I look for education on how to separate as much as is
practical today? At the moment, my coding still mixes a lot of
presentation with content as it uses tables. I would like to improve on
that. How do I go about it.

Thanks for the reply. Your further comments would be appreciated.

--
Alan Silver
(anything added below this line is nothing to do with me)


Alan Silver <al*********@nospam.thanx> wrote:

Where should I look for education on how to separate as much as is
practical today?



Taking other people''s advice on that is questionable.

What worked for me was years of banging my head against the desk asking
"why doesn''t this work as I want/expect?", combined with reading the
specification again and again, years of experience getting to know the
browser bugs and hacks, and hanging out here.

YMMV

--
Spartanicus


这篇关于过时的CSS人员需要最新的CSS建议!!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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