如何在html文档中使用CDATA? [英] How to use CDATA in html documents?
本文介绍了如何在html文档中使用CDATA?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的HTML文档出了什么问题?
< html>
< body>
< p><![CDATA [我看不到此文字:(]]>< / p>
< / body>
< / html>
为什么我看不到 CDATA $ c $ c $ c>文件,它们被标记为特征作者应该避免因为他们的支持有限。
您的浏览器可能将其视为未知元素。
What is wrong with my HTML document?
<html>
<body>
<p><![CDATA[I can't see this text :(]]></p>
</body>
</html>
Why don't I see the text inside CDATA
?
解决方案
Explicit CDATA sections are, in practice, unsupported in text/html
documents. They are marked as a feature authors should avoid because they have limited support.
Your browser is probably treating it as an unknown element.
这篇关于如何在html文档中使用CDATA?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文