JQuery 选项卡不再显示选项卡
几周前我的信息窗口显示选项卡还不错……现在它不再显示了…… 事实上,代码使用了 JQuery.. 在此链接上找到代码 http://code .google.com/p/gmaps-samples-v3/source/browse/trunk/infowindow/tabs.html?r=78
我已包含所有 JQuery 库(包括 CSS 文件)..出了什么问题? ... 让我困惑的是它工作了很长一段时间然后突然停止了..到底发生了什么? 任何帮助将不胜感激:)
这是更新的代码:(但它并没有真正起作用)
google.maps.event.addListener(marker, 'click', function() { infowindow.open(地图,标记);
//$("#tabs").tabs();
setTimeout(function(){
$("#tabs").tabs();
}, 100);
});
i had the info windows showing the tabs just fine a few weeks ago..and now its not showing anymore...
In fact the code uses JQuery..
find the codes on this link
http://code.google.com/p/gmaps-samples-v3/source/browse/trunk/infowindow/tabs.html?r=78
I have included all the libraries og JQuery including the CSS files..what is wrong?...
what puzzles me is that it was working for quite a while and suddenly stopped..what actually happened??
Any help would be appreciated:)
Here is the updated code:(but it doesn't really work)
google.maps.event.addListener(marker, 'click', function() { infowindow.open(map, marker);
//$("#tabs").tabs();
setTimeout(function(){
$("#tabs").tabs();
}, 100);
});
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决方法如下:
将其更改
为:
您可能必须选择大于 50 的值。似乎选项卡内容可用,但无法立即转换(我会责怪谷歌地图)。更好的方法是找到一个在信息窗口设置内容后触发的事件,然后调用
tabs()
方法。Here's a work–around:
Change this:
to:
You might have to choose a greater value than 50. Seems that the tabs content is available but can't be transformed right away (I'd blame google maps). Better would be to find an event that's triggered once the infowindow has set the content and then call the
tabs()
method.