打印

[求助] 大家来看看,我这个P哪里写得不合法,



 提示:您可以先修改部分代码再运行
我用W3C测提供
复制内容到剪贴板
代码:
Line 239, Column 27: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.
     <strong>色厨</strong></a><p><a href="#">一剑破天的终极仙武者,就算到异界,也是一剑在手,天下无敌的终
&#9993;
The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.
One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").
很烦,看了半天不知道哪里写错了,小菜在学习中,所以发现什么问题就想解决,堆到以后.还是什么问题都解决不了,
麻烦大家了,
更多>>

偶第一眼看到这个...
用& g t ;
p写span里就这样
you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element
p是块级元素(还是比较特殊的),只能放在块级元素里,不能放在span内联元素里

顺便说一下,p里不能放div等其他块级元素……

TOP

还在为头像烦恼?还在为不能关注好友动态烦忧?快来蓝色理想家园吧!
谢谢楼上几位.又懂了一点,对这些标准认识不怎么好.看来我只能把 <span 换为DIV了,

TOP