简体   繁体   English

jQuery工具在Webkit中不起作用

[英]Jquery tools not working in Webkit

I am using jQuery Tools and specifically the function .tabs ( http://jquerytools.org/documentation/tabs/index.html ) 我正在使用jQuery工具,尤其是.tabs函数( http://jquerytools.org/documentation/tabs/index.html

The function works fine if I use 如果我使用该功能正常

<ul class="tabs">
<li><a href="#">Tab 1</a></li>
<li><a href="#">Tab 2</a></li>
<li><a href="#">Tab 3</a></li>

But I also need to use the function in a <select> element. 但是我还需要在<select>元素中使用该函数。 This is working fine for Firefox, Internet Explorer etc. but not on webkit based web browsers. 这对于Firefox,Internet Explorer等工作正常,但不适用于基于Webkit的Web浏览器。 (Chrome, Safari...) (Chrome,Safari ...)

Why? 为什么? Here's a working example of the problem: http://jsfiddle.net/holmzor666/QXkbx/ 这是问题的有效示例: http : //jsfiddle.net/holmzor666/QXkbx/

see this edit 看到这个编辑

$(function() {
    $("ul.tabs").tabs("div.panes > div");
});​

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM