我在此页面使用FancyBox 2:http://encoreazalea.com/ee/botanical-gardens以在弹出窗口中显示Google地图。为什么不FancyBox窗口大小调整?
窗户很好,但所有的地图都有滚动条。我尝试调整显示窗口的大小,但它似乎没有正确响应我发送的指令。
下面是HTML:
<h3 class="state">Washington D.C.</h3>
<div class="gardens">
<p class="garden">US National Arboretum<br />
<a href="http://www.usna.usda.gov/">Website</a> | <a class="map" href="#directions5148">Directions</a></p>
</div>
<div class="gardens">
<div id="directions5148" style="display:none">
<iframe width="600" height="440" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?ie=UTF8&q=US+National+Arboretum&fb=1&gl=us&hq=US+National+Arboretum&hnear=US+National+Arboretum&cid=0,0,12451978746893569755&t=h&ll=38.912424,-76.96852&spn=0.008014,0.013733&z=16&iwloc=A&output=embed"></iframe><br /><small><a href="https://maps.google.com/maps?ie=UTF8&q=US+National+Arboretum&fb=1&gl=us&hq=US+National+Arboretum&hnear=US+National+Arboretum&cid=0,0,12451978746893569755&t=h&ll=38.912424,-76.96852&spn=0.008014,0.013733&z=16&iwloc=A&source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>
</div>
</p>
</div>
这里是jQuery的:
<script type="text/javascript">
$(".map").fancybox({
wrapCSS : 'fancybox-custom',
width : 700,
height : 600,
closeClick : true,
helpers : {
title : {
type : 'inside'
},
overlay : {
css : {
'background-color' : '#eee'
}
}
}
});
</script>
不管我怎么设置窗口的宽度和高度始终显示在相同的大小,有滚动地图周围的酒吧。
我的目标是摆脱滚动条。
谢谢。