How to add a scrollbar to jQuery tabs

2019-07-03 13:16发布

alt textPlease visit my page.

And if you click other tabs, you'll see what my problem is. The tab DIV will go over the line of my wrapper. I tried to figure out if there's any option to add scroll or not, and there is not!

Also tried to set the height value to DIV of tab. But it didn't work.

What I want is to add a scoll IN the tab DIV. so no matter how long the content of tab is, the Wrapper DIV stays the same.

Thanks for your help!

标签: jquery
2条回答
对你真心纯属浪费
2楼-- · 2019-07-03 13:43

This CSS rule should be enough:

#tabs {
    height:100%;
    overflow-y:auto;
}
查看更多
Bombasti
3楼-- · 2019-07-03 13:46

Just set a css property overflow:scroll or overflow:auto along with a height and you should get standard scrollbars being rendered on whichever div you want.

If you just want vertical scroll bars then use overflow-y:auto

查看更多
登录 后发表回答