< br />或者< div />与旧浏览器... [英] <br /> or <div /> with old browsers...

查看:69
本文介绍了< br />或者< div />与旧浏览器...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我开始使用更多< br /和< div style =" clear:both /


> ...



这是XHTML风格......


现在,难道不是那些真正混淆旧浏览器的吗?例如,

旧浏览器会将div视为div。因为没有关闭,所以在div之后所有的一切都会被视为div的一部分吗?

解决方案

< blockquote> Scripsit Su************@gmail.com


所以我开始使用更多< br /和< div style =" clear:both /


> ...



这是XHTML风格...



拖钓,还是只是无能为力?你向

c.i.w.a.stylesheets发布了同样的问题,其中包含不同的主语和不同的措辞,但

表现出同样基于无知的使用XHTML的意愿。你显然已经好几天没有读过这个组了。否则你不会认为

关于使用XHTML风格。


请在开始编写下一条消息之前学习发布到Usenet:
http://www.cs.tut.fi/~ jkorpela / usenet / dont.html


-

Jukka K. Korpela(Yucca)
http://www.cs.tut.fi/~jkorpela/


< Su ************ @ gmail.composted ...

:所以我我开始使用更多< br /和< div style =" clear:both" /> ...

:这是XHTML风格...


< div style =" clear:both; margin:0px auto; width:200px; border:1px solid#0000CC; text-align:center; line-height:1.5em; padding:0.2 em;">一些

内容< / div>


据我所知< divalways有一个结束标记。我从来没有看到
< div /直到你的帖子。甚至HTML也需要关闭

标签。


另请注意,< divtags可能默认为clear:both;所以可能不需要
。大多数浏览器在完成< / divtags之后在

开始< divand之前插入一个换行符。

http://www.w3schools.com/tags/
http://www.w3schools.com/tags/tag_div.asp


- -

Jim Carlock


6月19日上午7:26,Jim Carlock < anonym ... @ 127.0.0.1wrote:


据我所知< divalways有一个结束标记。我从来没有看到
< div /直到你的帖子。



(真实的)XHTML很好(前面提到的''旧的

浏览器''将会''呃?不要承认这一点。你想把它保存到你的
磁盘上吗?''


即使是HTML也需要关闭

tag。



上面的代码示例有一个结束标记。


另请注意< divtags



元素,不是标签


可能默认清除:both;



他们没有

http://www.w3schools.com/tags/http:/...gs/tag_div.asp



避免使用w3schools。每个段落提供更多错误,然后是任何其他

HTML教程网站。

-

D.狂热的Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/


so i am starting to use more of <br /and <div style="clear: both" /

>...

which is the XHTML style...

now, won''t those actually confuse the old browsers? for example,
will the old browser treat the "div" as not closing, and so everything
after the div will be treated as part of that div?

解决方案

Scripsit Su************@gmail.com:

so i am starting to use more of <br /and <div style="clear: both" /

>...

which is the XHTML style...

Are trolling, or just clueless? You posted the same question to
c.i.w.a.stylesheets, with a different Subject and different wording, but
exhibiting the same ignorance-based willingness to use XHTML. You apparently
haven''t read this group even for a few days; otherwise you wouldn''t think
about using XHTML style.

Please learn to post to Usenet before starting to compose your next message:
http://www.cs.tut.fi/~jkorpela/usenet/dont.html

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


<Su************@gmail.composted...
: so i am starting to use more of <br /and <div style="clear:both"/>...
: which is the XHTML style...

<div style="clear:both;margin:0px auto;width:200px;border:1px solid #0000CC;text-align:center;line-height:1.5em;padding:0.2em;">Some
Content</div>

As far as I know <divalways has a closing tag. I''ve NEVER
seen <div/until your post here. Even HTML requires a closing
tag.

Also note that <divtags may default to clear:both; so that may
not be needed. Most browsers insert a line-break before the
starting <divand after the completing </divtags.

http://www.w3schools.com/tags/
http://www.w3schools.com/tags/tag_div.asp

--
Jim Carlock


On Jun 19, 7:26 am, "Jim Carlock" <anonym...@127.0.0.1wrote:

As far as I know <divalways has a closing tag. I''ve NEVER
seen <div/until your post here.

It is fine in (true) XHTML (for which the previously mentioned ''older
browsers'' will go ''Eh? Don''t recognise this. You wanna save it to your
disk?''

Even HTML requires a closing
tag.

The above code sample has a closing tag.

Also note that <divtags

Elements, not tags

may default to clear:both;

They don''t

http://www.w3schools.com/tags/http:/...gs/tag_div.asp

Avoid w3schools. They provide more errors per paragraph then any other
HTML tutorial site.
--
David Dorward
http://dorward.me.uk/
http://blog.dorward.me.uk/


这篇关于&lt; br /&gt;或者&lt; div /&gt;与旧浏览器...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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