jQuery   发布时间:2022-03-30  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了Tab使用jQuery滑出 – 需要不止一个大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在使用Tab Slide Out Jquery插件.
http://wpaoli.building58.com/2009/09/jquery-tab-slide-out-plugin/

我有一个显示在左侧的标签,但我想在右侧显示一个独立标签.
当我复制css,js和div的块时,右边的选项卡会出现,但如果我激活右边的那个,我只能激活左边的那个.

此外,联系人图像仅显示在右侧,因此我只能激活右侧选项卡.
我如何对此进行编码,以便我可以在一个页面上有多个选项卡并单独激活它们?

$(function(){
         $('.slide-out-div').tabSlideOut({
             tabHandle: '.handle',//class of the element that will be your tab
             path@R_573_10586@bImage: 'images/contact_tab.gif',//path to the image for the tab (optionaly can be set using css)
             imageHeight: '122px',//height of tab image
             imageWidth: '40px',//width of tab image    
             tabLOCATIOn: 'left',//side of screen where tab lives,top,right,bottom,or left
             speed: 300,//speed of animation
             action: 'click',//options: 'click' or 'hover',action to trigger animation
             topPos: '200px',//position from the top
             fixedPosition: false                               //options: true makes it stick(fixed position) on scroll
         });

         $('.slide-out-div-apps').tabSlideOut({
             tabHandle: '.handle',//width of tab image    
             tabLOCATIOn: 'right',//position from the top
             fixedPosition: false                               //options: true makes it stick(fixed position) on scroll
         });


     });

这是我的CSS

.slide-out-div {
   padding: 20px;
    width: 250px;
    BACkground: #f2f2f2;
    border: #29216d 2px solid;
}

.slide-out-div-apps {
   padding: 20px;
    width: 250px;
    BACkground: #f2f2f2;
    border: #29216d 2px solid;
}

解决方法

你的问题是tabHandle:’.handle

解决此问题,请为每个.handle添加一个类,例如,您可以使用.handle.first和.handle.second

这样每个触发器都是唯一的.干杯

大佬总结

以上是大佬教程为你收集整理的Tab使用jQuery滑出 – 需要不止一个全部内容,希望文章能够帮你解决Tab使用jQuery滑出 – 需要不止一个所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。