Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/72.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/user-interface/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
jQuery UI api-选定选项卡上的动画停止_Jquery_User Interface_Tabs - Fatal编程技术网

jQuery UI api-选定选项卡上的动画停止

jQuery UI api-选定选项卡上的动画停止,jquery,user-interface,tabs,Jquery,User Interface,Tabs,我将jQuery UI选项卡小部件中选定的导航选项卡设置为: $('$tabs').bind('tabsselect', function(event, ui) { var choosen = ui.index; $('#$tabs ul.ui-tabs-nav').find('li:eq(' + choosen + ')').stop(true, true).animate({ 'width': '350px' }, 100); }); 它起作用了!但只有一次,一旦它循环,它停止动画。。。

我将jQuery UI选项卡小部件中选定的导航选项卡设置为:

$('$tabs').bind('tabsselect', function(event, ui) {
var choosen = ui.index;
$('#$tabs ul.ui-tabs-nav').find('li:eq(' + choosen + ')').stop(true, true).animate({
'width': '350px'
}, 100);
});
它起作用了!但只有一次,一旦它循环,它停止动画。。。 有什么想法吗? 非常感谢。 要说清楚,这里有一个例子:


您将看到选项卡上的动画在被访问后停止…

您没有将其他选项卡的宽度放回原位吗?您无法将已经是350px宽度的对象设置为350px宽度。