gpt4 book ai didi

html - 如何在html文件中使用CDATA?

转载 作者:技术小花猫 更新时间:2023-10-29 12:32:45 26 4
gpt4 key购买 nike

我的 HTML 文档有什么问题?

<html>
<body>
<p><![CDATA[I can't see this text :(]]></p>
</body>
</html>

为什么我在 CDATA 中看不到文本?

最佳答案

在实践中,显式 CDATA 部分在 text/html 文档中不受支持。它们被标记为作者应该 avoid because they have limited support 的功能.

您的浏览器可能将其视为未知元素。

关于html - 如何在html文件中使用CDATA?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3880644/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com