我想知道是否有可能使用谷歌地图的IFRAME代码来显示在一个厚厚的jQuery灯箱。任何帮助,我正在尝试使用嵌入的网址,但没有运气。有没有人看到这个问题的解决方案?我试着用谷歌搜索了一下,但没有结果。
发布于 2009-07-01 21:53:07
您只需将Google iframe放入一个隐藏的div中,然后使用Thickbox将其作为inline content打开。
<a href="#TB_inlinemodalContent?height=400&width=430&inlineId=modalContent" title="add a caption to title attribute / or leave blank" class="thickbox">Show hidden modal content.</a>
<div id="modalContent" style="display:none;">
<iframe width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/?ie=UTF8&ll=37.09024,-95.712891&spn=24.455808,37.353516&z=4&output=embed"></iframe><br /><small><a href="http://maps.google.com/?ie=UTF8&ll=37.09024,-95.712891&spn=24.455808,37.353516&z=4&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</div>https://stackoverflow.com/questions/1071443
复制相似问题