jQuery UI选项卡参考

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了jQuery UI选项卡参考相关的知识,希望对你有一定的参考价值。

  1. $(document).ready(function(){
  2. $('#example > ul').tabs();
  3. });
  4.  
  5. ====
  6.  
  7. // add slide effect to a tab
  8. $('#example > ul').tabs({ fxSlide: true });
  9.  
  10. // add a fast fade effect to a tab
  11. $('#example > ul').tabs({ fxFade: true, fxSpeed: 'fast' });
  12.  
  13. // add a slide and fade effect
  14. $('#example > ul').tabs({ fxSlide: true, fxFade: true, fxSpeed: 'normal' });
  15.  
  16. // disable one of the tabs (no-zero-based index)
  17. $('#example > ul').tabs({ disabled: [3] });
  18.  
  19. // start with one of the tabs selected (no-zero-based index)
  20. $('#example > ul').tabs(2);
  21.  
  22. // start with one of the tabs selected and another disabled
  23. $('#example > ul').tabs(2, { disabled: [1] });

以上是关于jQuery UI选项卡参考的主要内容,如果未能解决你的问题,请参考以下文章