Google地图未在网页上显示

时间:2014-03-18 07:20:29

标签: html google-maps

我试图在我的网页上放置Google地图,但以下代码对我不起作用

我哪里出错了,请纠正这个

<iframe width="100%" height="100%" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src=
"https://www.google.co.in/maps/place/Vaikunthlal+Mehta+Rd,+Nehru+Nagar,+Airport+Area,+Juhu/@19.1040931,72.8403963,16z/data=!4m2!3m1!1s0x3be7c9bf5aae1367:0xd0b948b462f60df5?hl=en">
</iframe>
<br />
<small>View <a href="https://goo.gl/maps/Tns6b"> </div>

1 个答案:

答案 0 :(得分:0)

试试这个。

<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://www.google.co.in/maps?t=m&amp;q=Vaikunthlal+Mehta+Rd,+Nehru+Nagar,+Airport+Area,+Juhu&amp;ie=UTF8&amp;hq=&amp;hnear=Vaikunthlal+Mehta+Rd,+Nehru+Nagar,+Airport+Area,+Juhu,+Mumbai,+Mumbai+Suburban,+Maharashtra&amp;z=14&amp;ll=19.104093,72.840396&amp;output=embed"></iframe><br /><small><a href="https://www.google.co.in/maps?t=m&amp;q=Vaikunthlal+Mehta+Rd,+Nehru+Nagar,+Airport+Area,+Juhu&amp;ie=UTF8&amp;hq=&amp;hnear=Vaikunthlal+Mehta+Rd,+Nehru+Nagar,+Airport+Area,+Juhu,+Mumbai,+Mumbai+Suburban,+Maharashtra&amp;z=14&amp;ll=19.104093,72.840396&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>

你没有关闭一个标签(小)和一些小修复。希望现在可以使用