thickbox +谷歌地图没有出现?

时间:2011-07-22 12:22:01

标签: jquery google-maps lightbox thickbox

我的DNN窗格中有这个HTML:

<div class="mapImage"><span xmlns="http://www.w3.org/1999/xhtml"><a href="#TB_inlinemodalContent?height=350&amp;width=500&amp;inlineId=modalContent"><img alt="" width="193" height="235" src="/Portals/5/home-3_03.png" /></a></span></div>

<a href="#TB_inlinemodalContent?height=400&amp;width=430&amp;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="500" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.co.uk/maps?f=q&amp;source=s_q&amp;hl=en&amp;geocode=&amp;q=E11+4YE&amp;aq=&amp;sll=52.155202,-0.476543&amp;sspn=0.003864,0.011362&amp;ie=UTF8&amp;hq=&amp;hnear=London+E11+4YE,+United+Kingdom&amp;ll=51.557596,0.004206&amp;spn=0.018677,0.042915&amp;z=14&amp;iwloc=A&amp;output=embed"></iframe><br /><small><a href="http://maps.google.co.uk/maps?f=q&amp;source=embed&amp;hl=en&amp;geocode=&amp;q=E11+4YE&amp;aq=&amp;sll=52.155202,-0.476543&amp;sspn=0.003864,0.011362&amp;ie=UTF8&amp;hq=&amp;hnear=London+E11+4YE,+United+Kingdom&amp;ll=51.557596,0.004206&amp;spn=0.018677,0.042915&amp;z=14&amp;iwloc=A" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</div>

但是所有这一切都是一个黑盒子,好像厚箱正试图打开一样。但没有地图显示? 有任何想法吗?我想在我点击网页上的图片时显示地图。

其他任何实际工作的灯箱?

由于

1 个答案:

答案 0 :(得分:1)

亲爱的将你的div内容包含在p标签内,即 <div id="modalContent" style="display: none"> <p> your text and images etc... </p> </div>