【问题标题】:HTML5 iframe won't show url source image [closed]HTML5 iframe 不会显示 url 源图像 [关闭]
【发布时间】:2018-08-27 20:59:00
【问题描述】:

我试过这个:

<iframe src="https://www.google.com/maps/@52.047652,1.1568687,14z"width ="400 height = "400"> </iframe>

我什至尝试删除 url 地址的不同部分。

我什至尝试添加如下边框:

<iframe frameborder = "1" src="https://www.google.com/maps/@52.047652,1.1568687,14z" width ="400 height = "400" > </iframe>

出现边框框线,但无论如何,实际图像本身不会。

我也在 Mozilla Firefox Quantum 中运行这一切,使用 Visual Studio 代码。

提前感谢您的帮助。

【问题讨论】:

  • 请正确关闭引号,首先您的 iframe 链接根本不会生成任何地图。请仔细检查网址是否正常

标签: html css iframe


【解决方案1】:

您忘记关闭宽度的双引号,您的标记不完整。

<iframe src="https://www.google.com/maps/@52.047652,1.1568687,14z"width="400" height="400"> </iframe>

这可能会有所帮助:Generate Google Map Iframe

【讨论】:

    【解决方案2】:

    您在宽度属性中错过了双引号(“)

     <iframe src="https://www.google.com/maps/@52.047652,1.1568687,14z"width ="400" height = "400"> </iframe>
    

    【讨论】:

      【解决方案3】:

      您忘记关闭宽度的双引号。

      下次您可以尝试使用此工具时,它会为 GMap 生成 iframe: https://www.mapsdirections.info/en/custom-google-maps/

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2015-06-07
        • 1970-01-01
        • 2016-05-24
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多