自定义滚动条(垂直)内的自定义滚动条(水平)

时间:2022-11-25 19:06:01

i want horizontal scroll bar within vertical scroll bar, i tried it by modifying it class base, but it's not working properly, is it possible?

我想在垂直滚动条内的水平滚动条,我通过修改它类基础尝试它,但它不能正常工作,是否可能?

in short we want example2 within example1 from this demo tinyscrollbar

简而言之,我们想要来自这个demo tinyscrollbar的example1中的example2

1 个解决方案

#1


2  

you have to convert this id "scrollbar1" to class

你必须将这个id“scrollbar1”转换为class

$(document).ready(function(){
        $('#scrollbar1').tinyscrollbar();   
    });

to

$(document).ready(function(){
        $('.scrollbar1').tinyscrollbar();   
    });

then you can use it multiple time. hope you can help from this

然后你可以多次使用它。希望你能从中得到帮助

#1


2  

you have to convert this id "scrollbar1" to class

你必须将这个id“scrollbar1”转换为class

$(document).ready(function(){
        $('#scrollbar1').tinyscrollbar();   
    });

to

$(document).ready(function(){
        $('.scrollbar1').tinyscrollbar();   
    });

then you can use it multiple time. hope you can help from this

然后你可以多次使用它。希望你能从中得到帮助