jquery - 将效果应用于 jquery-ui 选项卡

标签 jquery jquery-ui jquery-ui-tabs jquery-effects

是否可以将效果应用于 jquery-ui 选项卡,我还没有看到任何示例,并且我相当确定如果可能的话,以下内容是不正确的:

<script type="text/javascript">
    $(function() {
        $("#tabs").tabs();
        $("#tabs").effect(slide,options,500,callback);
    });
</script>

最佳答案

如果你希望在更改标签时出现效果,你可以这样做 using the fx option :

$(function() {
  $("#tabs").tabs( { fx: { height: 'toggle' } } );
});

淡入淡出+幻灯片如下所示:

$(function() {
  $("#tabs").tabs( { fx: { height: 'toggle', opacity: 'toggle' } } );
});

这会将效果应用于选项卡本身,you can take it for a spin here .

关于jquery - 将效果应用于 jquery-ui 选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2654885/

相关文章:

jquery - 如何减小 jQuery UI 选项卡面板标题中的字体大小?

php - 将加载时的 jQuery 变量传递给 mysql 表

javascript - 查看字符串是否开始与另一个字符串匹配

javascript - 使用 jquery slide 时,一些 css 直到幻灯片之后才适用

javascript - 将输入转换为jquery中的链接

jquery - 控件在 jQuery 选项卡中无法获得适当的尺寸

jquery - 轨道 5 : handling error messages with rails-ujs and jquery

javascript - 如何让 jQuery 在上传之前选择文件时过滤文件类型?

javascript - 如何使用可选择的 Jquery UI 查找选定元素

jquery - 如何使用动态内容动态添加选项卡?