【发布时间】:2020-10-23 18:51:41
【问题描述】:
<iframe width="560" height="315" allow="fullscreen; autoplay; encrypted-media" src="https://games.construct.net/174/latest" frameborder="0" allowfullscreen="true" msallowfullscreen="true" mozallowfullscreen="true" webkitallowfullscreen="true" allowpaymentrequest="false" referrerpolicy="unsafe-url" sandbox="allow-same-origin allow-forms allow-scripts allow-pointer-lock allow-orientation-lock allow-popups" scrolling="no"></iframe>
我有这个源代码作为一个字符串。 如何将其更改为 HTML 代码以运行? 我尝试了 appendChiled 命令,但我不知道我应该如何使用它。
我刚刚收到错误或显示此字符串代码的空 iframe。
【问题讨论】:
-
什么?我不明白
标签: javascript python html