【发布时间】:2013-12-08 16:53:57
【问题描述】:
有人可以请我理解为什么谷歌地图在fancybox中不起作用吗?我在下面包含了我的代码。
我的 JS
var fbCloseTitle = "close",
fbNextTitle = "next",
fbPrevTitle = "previous";$(".fancybox").fancybox({
width: '90%',
height: '90%',
fixed: false,
autoSize: false,
autoCenter: true,
tpl: {
closeBtn: '<div title="' + fbCloseTitle + '" class="fancybox-item fancybox-close"></div>',
next: '<a title="' + fbNextTitle + '" class="fancybox-item fancybox-next"><span></span></a>',
prev: '<a title="' + fbPrevTitle + '" class="fancybox-item fancybox-prev"><span></span></a>'
}});
我的 HTML
<div class="cul center apear floatL">
<div class="verticalLine"></div>
<figure class="diamond relative"> <a class="fancybox fancybox.iframe" href="https://maps.google.com/maps?q=big%20smile%20creative+Cambridge,+UK"><img class="centerAbsolute" src="img/diamond04.jpg" alt="Graphic Design In Cambridge"></a></figure>
<h2 class="proximaBold">we work in the heart of cambridge!</h2>
<div class="line"></div>
<p>We are very proud of our city and we try to provide a good, honest, local service that the businesses of Cambridge can rely on. You deserve it!</p>
</div>
我想我的谷歌地图网址可能是错误的,fancybox 工作正常,只是地图没有从谷歌地图加载。
【问题讨论】:
标签: javascript jquery google-maps maps fancybox