浏览器忽略< br> [英] browser ignore <br>

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

问题描述

如果我有< span> text< / span> <峰; br>然后是一些文字


是不是有跨度和文本之间的换行符?

为什么浏览器会忽略< br> ; ?

If I have <span>text</span> <br> and then some text

isn''t there sopposed to be a line break between the span and the text ?
Why do browsers ignore the <br> ?

推荐答案

red写道:
red wrote:
如果我有< span> text< / span> <峰; br>然后一些文字

是不是在跨度
和文本之间的换行符?为什么浏览器会忽略< br> ?
If I have <span>text</span> <br> and then some text

isn''t there sopposed to be a line break between the span
and the text ? Why do browsers ignore the <br> ?




他们通常不会,你使用哪种doctype声明?


-

Els http://locusmeus.com/

Sonhos VEM。 Sonhos v?o。 Orestoébritfeito。

- Renato Russo -

现在播放:S aar - 9



They don''t usually, which doctype declaration are you using?

--
Els http://locusmeus.com/
Sonhos vem. Sonhos v?o. O resto é imperfeito.
- Renato Russo -
Now playing: S a a r - 9


Els写道:
red写道:
red wrote:
如果我有< span> text< / span> <峰; br>然后一些文字

是不是在跨度
和文本之间的换行符?为什么浏览器会忽略< br> ?
If I have <span>text</span> <br> and then some text

isn''t there sopposed to be a line break between the span
and the text ? Why do browsers ignore the <br> ?



他们通常不会,你使用哪种doctype声明?



They don''t usually, which doctype declaration are you using?




如果它是xhtml 1.0严格,你需要一个结束标签,像这样< br />


-

Lennart Fylling

符合标准和可访问的网络解决方案。

Aalesund

挪威



If it''s xhtml 1.0strict, you need a closing tag, like this <br />

--
Lennart Fylling
Standards compliant and accessible web solutions.
Aalesund
Norway


2004年9月16日星期四16:10:07 GMT ,red< gr **** @ reenie.org>写道:
On Thu, 16 Sep 2004 16:10:07 GMT, red <gr****@reenie.org> wrote:
如果我有< span> text< / span> <峰; br>然后一些文字

是不是有跨度和文本之间的换行符?


在HTML中,是的。

为什么浏览器会忽略< br> ?
If I have <span>text</span> <br> and then some text

isn''t there sopposed to be a line break between the span and the text ?
In HTML, yes.
Why do browsers ignore the <br> ?




您使用的是HTML还是XHTML?在XHTML中,标签必须包含斜杠,使用

< br />相反。



Are you using HTML or XHTML? In XHTML the tag must include a slash, use
<br /> instead.


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

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