gpt4 book ai didi

html -
 标签不会显示包含 <iframe> 的文本

转载 作者:搜寻专家 更新时间:2023-10-31 08:03:33 25 4
gpt4 key购买 nike

为什么我不能显示我的 <iframe> <pre> 中的代码行?我需要展示这个 <iframe>页面上的代码供人们复制/粘贴。当我把它写在 <pre> 中时标签,它只呈现实际的 iframe对象,而不是输出 iframe代码作为页面上的文本。

<pre>
<iframe height="150" width="150" src="http://lorem.com/text.html"></iframe>
</pre>

最佳答案

您需要替换 <>与各自的实体 &lt;&gt; .

关于html - <pre> 标签不会显示包含 &lt;iframe&gt; 的文本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7847465/

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