我正在尝试使用iframe嵌入Google街景地图(the map)
我刚刚将iframe代码(来自谷歌地图)代码复制到我网站的页面中。
iframe显示在页面中,但正文为空。
可能是什么问题?
<iframe
width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0"
src="https://maps.google.es/maps?q=barcelona&aq=f&ie=UTF8&hl=es&hq=&hnear=Barcelona,+Catalu%C3%B1a&ll=41.385064,2.173404&spn=0.32884,0.727158&t=h&z=11&layer=c&cbll=41.384233,2.177893&panoid=cHQCwlORibRoxMqj2m9IVg&cbp=12,0,,0,0&source=embed&output=svembed">
</iframe>
答案 0 :(得分:0)
因为Url不正确。尝试这样的事情:
<iframe src="https://www.google.com/maps/embed?pb=!4v1526278480320!6m8!1m7!1sCAoSLEFGMVFpcFBJbm9RSGxGbXhHWC1aZFhtOXhkRUhfUTVDVHRIdGdiRUpmUm5i!2m2!1d41.41745213117124!2d2.182604027161005!3f124.5!4f0!5f0.7820865974627469" width="600" height="450" frameborder="0" style="border:0" allowfullscreen></iframe>