0

我已将谷歌地图添加到我网站的联系页面。但公司的个人资料标签不会以 iframe 为中心。我怎样才能解决这个问题?

谷歌地图在我的页面

这是我从谷歌复制的代码

<iframe width="790" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=rotasist+yaz%C4%B1l%C4%B1m&amp;aq=&amp;sll=41.005322,29.01218&amp;sspn=0.575166,1.352692&amp;t=h&amp;ie=UTF8&amp;hq=rotasist+yaz%C4%B1l%C4%B1m&amp;hnear=&amp;ll=40.995204,29.099564&amp;spn=0.008988,0.021136&amp;z=14&amp;iwloc=A&amp;cid=3028905870531188654&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=rotasist+yaz%C4%B1l%C4%B1m&amp;aq=&amp;sll=41.005322,29.01218&amp;sspn=0.575166,1.352692&amp;t=h&amp;ie=UTF8&amp;hq=rotasist+yaz%C4%B1l%C4%B1m&amp;hnear=&amp;ll=40.995204,29.099564&amp;spn=0.008988,0.021136&amp;z=14&amp;iwloc=A&amp;cid=3028905870531188654" style="color:#0000FF;text-align:left">View Larger Map</a></small>
4

1 回答 1

1

试试这个

<iframe width="790" height="400" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=rotasist+yaz%C4%B1l%C4%B1m&amp;aq=&amp;sll=41.005322,29.01218&amp;sspn=0.575166,1.352692&amp;t=h&amp;ie=UTF8&amp;hq=rotasist+yaz%C4%B1l%C4%B1m&amp;hnear=&amp;ll=41.007,29.099564&amp;spn=0.008988,0.021136&amp;z=14&amp;iwloc=A&amp;cid=3028905870531188654&amp;output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=rotasist+yaz%C4%B1l%C4%B1m&amp;aq=&amp;sll=41.005322,29.01218&amp;sspn=0.575166,1.352692&amp;t=h&amp;ie=UTF8&amp;hq=rotasist+yaz%C4%B1l%C4%B1m&amp;hnear=&amp;ll=40.995204,29.099564&amp;spn=0.008988,0.021136&amp;z=14&amp;iwloc=A&amp;cid=3028905870531188654" style="color:#0000FF;text-align:left">View Larger Map</a></small>

我调整了一个纬度/经度参数(作为 ll 发送),以便它将点推到更靠近地图的下边界,并显示更多的弹出窗口。简而言之,参数

ll=40.995204,29.099564

变成了

ll=41.007,29.099564

如果这仍然不够好,您可以调整该 ll 参数,直到您将它放在您想要的位置。

于 2013-06-19T22:31:47.630 回答