1

我目前将 iframe 大小设置为 190px x 190px。是否有谷歌不会显示地图的最小尺寸?谷歌不会显示地图的每个页面是否有最大的地图?

这里的例子。代码在那里,它只是不显示。

4

1 回答 1

2

你检查了javascript控制台吗?我看到看起来像是在解释问题的错误:

Uncaught TypeError: Object [object Object] has no method 'getElements' /index.php?option=com_mls&view=list (1):1

未捕获的类型错误:对象 [对象对象] 没有方法 'getProperty' /index.php?option=com_mls&view=list (1):1

16 拒绝显示文档,因为 X-Frame-Options 禁止显示。

看起来您正试图将谷歌地图放在 iframe 中,而不是使用它们提供的嵌入式代码。

粘贴 HTML 以嵌入网站

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?q=719+NORTH+CHARLES++BELLEVILLE&amp;ie=UTF8&amp;hq=&amp;hnear=719+N+Charles+St,+Belleville,+St+Clair,+Illinois+62220&amp;t=h&amp;z=14&amp;ll=38.521293,-89.978031&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?q=719+NORTH+CHARLES++BELLEVILLE&amp;ie=UTF8&amp;hq=&amp;hnear=719+N+Charles+St,+Belleville,+St+Clair,+Illinois+62220&amp;t=h&amp;z=14&amp;ll=38.521293,-89.978031&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>
于 2012-12-26T23:00:44.360 回答