关闭段落标签被隐藏 [英] Closing paragraph tags being ingnored
本文介绍了关闭段落标签被隐藏的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否有人可以帮助我。我收到验证错误,我被告知我正试图在paragrpah中打开一个div。
我打开div之前关闭了paragrpah但是由于某种原因当我查看源代码时,验证器没有看到关闭的p标签,浏览器没有看到它。
它在代码中非常明确。
I''m wondering if anyone can help me. I''m getting validation errors where I''m told I''m trying to open a div inside a paragrpah.
I''m closing the paragrpah before I open the div but for some reason the validator doesn''t see the closing p tag ans when I view source, the browser doesn''t see it.
It''s quite definatly in the code.
展开 | 选择 | Wrap | 行号
推荐答案
哪个浏览器?这应该验证所以它取决于之前发生了什么。
我不会使用像< br />这样的XHTML自闭标签。或< img />在HTML标记中导致它是不必要的,有时会导致问题。
Which browser? That should validate so it depends on what''s going on before that.
I wouldn''t be using XHTML self closing tags like <br /> or <img/> in HTML markup cause it''s unnecessary and sometimes leads to problems.
我需要使用自闭标签,因为我正在使用XHTML。我知道代码应该验证但浏览器错过了结束段落标记。我在Internet Explorer,Firefox,Safari,谷歌浏览器和Opera中得到它。
我用分区而不是段落来修复它但我不想要那个每次都想知道为什么会这样。还有其他想法吗?
I need to use the self-closing tags because I''m using XHTML. I know that the code should validate but the browser missed out the closing paragraph tag. I get it in Internet Explorer, Firefox, Safari, Google Chrome and Opera.
I did fix it using a division instead of a paragraph but I don''t want to have to that every time and would like to know why it happens. Any other ideas?
浏览器错过了结束段落标记。我在Internet Explorer,Firefox,Safari,Google Chrome和Opera中获得它。
the browser missed out the closing paragraph tag. I get it in Internet Explorer, Firefox, Safari, Google Chrome and Opera.
听起来你自相矛盾。我没有看到问题。
Sounds like you''re contradicting yourself. I don''t see the problem.
这篇关于关闭段落标签被隐藏的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文