< / BR>不工作在Firefox和铬 [英] </br> not working in firefox and chrome
本文介绍了< / BR>不工作在Firefox和铬的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
break line标记在firefox中不工作,在chrome中也不行。当我看到我的页面源时,我得到:
< p> Zugang zu Testaccount:< / br>< / br> peter petrelli< / br>< / br> sein Standardpwd。< / br>< / br> peter.heroes.com< / p>
然而,当我查看选定的来源时,我得到:
< p> Zugang zu Testaccount:peter petrelli sein Standardpwd。 peter.heroes.com< / p为H.
看来firefox正在过滤掉折线标签。
它在IE7中工作正常。
解决方案
您正在寻找< br />
的< / br>
如 br 在标签的结尾处。
以下是XHTML中的其他自闭标签:
break line tag is not working in firefox, neither in chrome. When i see the source of my page i get:
<p>Zugang zu Testaccount:</br></br>peter petrelli </br></br>sein Standardpwd.</br></br>peter.heroes.com</p>
However when i do view selected source, i get:
<p>Zugang zu Testaccount: peter petrelli sein Standardpwd. peter.heroes.com</p>
It seems firefox is filtering break line tags out.
It works in IE7 fine.
解决方案
You're looking for <br />
instead of </br>
Self closing tags such as br have the slash at the end of the tag.
Here are the other self-closing tags in XHTML:
这篇关于< / BR>不工作在Firefox和铬的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文