【问题标题】:How do I enable iframes in code如何在代码中启用 iframe
【发布时间】:2017-03-22 20:19:09
【问题描述】:

我有 iframe 的代码,但由于某种原因,它不起作用。它将显示一条错误消息或一个空白的空白框。我不确定是否需要启用 iframe 所针对的代码,或者“扩展”是否有问题。

<iframe src="https://www.w3schools.com" width="80%" height="380px" scrolling="yes">

【问题讨论】:

  • 显示的错误信息是什么?

标签: iframe targeting


【解决方案1】:

可能是因为您没有关闭 iframe 标记? https://www.w3schools.com/html/html_iframe.asp

<iframe src="https://www.w3schools.com" width="80%" height="380px" scrolling="yes"></iframe>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多