谷歌地图没有出现在网站上

时间:2014-11-05 02:31:21

标签: javascript jquery html css html5

Google地图未显示在我网站页面的php版本上。请帮忙。这是网页和源代码。

<section class="meteor-google-map fullwidth block" style="height: 450px; border: solid transparent; border-width: 1px 0; margin-bottom: 4em;">
<div class="" style="height: 450px; border: solid transparent; border-width: 1px 0; margin-bottom: 4em;">
<span class="map-data hidden">{"latlong":"44.99746,-91.72712","type":"ROADMAP","zoom":16,"title":"Our Headquarters","link":"","tooltip":"","fullscreen":true}</span>
<div class="infobox-content hidden">
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
</div>
</div><!-- .meteor-google-map -->
</section>

2 个答案:

答案 0 :(得分:0)

在SPAN TAG中使用该内容,您可以使用:

<iframe src="https://www.google.com/maps/embed?pb=!1m14!1m8!1m3!1d2821.3526561090844!2d-91.72712!3d44.997460000000004!3m2!1i1024!2i768!4f13.1!3m3!1m2!1s0x0%3A0x0!2zNDTCsDU5JzUwLjkiTiA5McKwNDMnMzcuNiJX!5e0!3m2!1ses!2sar!4v1415155466768" width="600" height="450" frameborder="0" style="border:0"></iframe>

我希望那就是你要找的东西

答案 1 :(得分:0)

只是查看您的页面来源,您的.php版本没有加载your.html版本标题中的一半脚本。我认为这可能是相关的。