如何教同事DIV& CSS? [英] How to teach coworkers DIV & CSS?

查看:68
本文介绍了如何教同事DIV& CSS?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我被要求找到一些文档,解释如何使用DIV和CSS而不是TABLES开发一个

网站。这是向我们外包的人们解释的,我们希望如何完成。


我在alistapart附近挖了但是找不到任何完整的东西足够。我通过W3C搜索了
,但只能找到标准,而不是如何以所需的方式应用它们。


有没有人为我提供一些方便的链接?在这里回复他们也可能对其他读者有帮助。


Woolly

解决方案



" Woolly Mittens" < WM ****** @ hotmailz.com>在留言中写道

新闻:40 *********************** @ news.versatel.net ..


这些网站走了一段路:
http://www.webreference.com/authorin...yout/advanced/
http://www.yourhtmlsource.com/styles...csslayout.html

http://www.westciv.com/style_master/...aying_out.html


任何更好的发现?


2004年4月20日星期二,Woolly Mittens写道:

我被要求找一些文档来解释如何使用DIV和CSS开发一个
网站,而不是TABLES。




你应该避免使用DI V元素,没有任何意义,只是b $ b b最后的手段。而是使用具有定义语义的元素,如P,H1,

H2等。




Andreas Prilop < NH ****** @ rrzn-user.uni-hannover.de>在消息中写道

news:Pine.GSO.4.44.0404201515420.13467-100000@s5b003 ...

2004年4月20日星期二,Woolly Mittens写道:

我被要求找一些文档来解释如何使用DIV和CSS开发一个
网站,而不是TABLES。



你应该避免使用DIV元素,它没有任何意义,只是最后的手段。而是使用具有定义语义的元素,如P,H1,
H2等。



http://www.w3.org/TR/html401/struct/....html#edef-DIV

" DIV和SPAN元素与id和类

属性一起提供了一种向文档添加结构的通用机制。

这些元素定义内联内容(SPAN) )或块级(DIV)但

不对内容强加任何其他表述习语。因此,作者可以使用

这些元素与样式表,lang属性等,

来根据自己的需要和品味定制HTML。


IOW,DIV适合做OP想要做的事情。


-Karl


I was asked to find some documentation which explains how to develop a
website using DIV''s and CSS, instead of TABLES. This is to explain to the
people we outsource things to, how we want it done.

I dug around alistapart but couldn''t find anything complete enough. I
searched through the W3C, but could only find the standards, not how to
apply them in the desired way.

Does anyone have some handy links for me??? Replying them here might also be
helpful to other readers :)

Woolly

解决方案


"Woolly Mittens" <wm******@hotmailz.com> wrote in message
news:40***********************@news.versatel.net.. .

These sites went some way:
http://www.webreference.com/authorin...yout/advanced/

http://www.yourhtmlsource.com/styles...csslayout.html

http://www.westciv.com/style_master/...aying_out.html

Any better finds?


On Tue, 20 Apr 2004, Woolly Mittens wrote:

I was asked to find some documentation which explains how to develop a
website using DIV''s and CSS, instead of TABLES.



You should avoid using the DIV element, which has no meaning and is only
a "last resort". Rather use elements with defined semantics like P, H1,
H2, etc.



"Andreas Prilop" <nh******@rrzn-user.uni-hannover.de> wrote in message
news:Pine.GSO.4.44.0404201515420.13467-100000@s5b003...

On Tue, 20 Apr 2004, Woolly Mittens wrote:

I was asked to find some documentation which explains how to develop a
website using DIV''s and CSS, instead of TABLES.



You should avoid using the DIV element, which has no meaning and is only
a "last resort". Rather use elements with defined semantics like P, H1,
H2, etc.



http://www.w3.org/TR/html401/struct/....html#edef-DIV
" The DIV and SPAN elements, in conjunction with the id and class
attributes, offer a generic mechanism for adding structure to documents.
These elements define content to be inline (SPAN) or block-level (DIV) but
impose no other presentational idioms on the content. Thus, authors may use
these elements in conjunction with style sheets, the lang attribute, etc.,
to tailor HTML to their own needs and tastes. "

IOW, DIV is appropriate for doing exactly what the OP wants to do.

-Karl


这篇关于如何教同事DIV&amp; CSS?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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