如果选项卡太多,如何使 Jquery UI 选项卡水平滚动 [英] How to make Jquery UI Tabs scroll horizontally if there are too many tabs

查看:42
本文介绍了如果选项卡太多,如何使 Jquery UI 选项卡水平滚动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在上图是标签太多"的例子,默认显示为多行.

Now the image above is an example of " too many tabs ", It appears as multiple line by default.

但是我想让它在一行中并且可以水平滚动,要么在开始选项卡之前和最后一个选项卡之后添加两个箭头,要么自动滚动.

But I want to make it in a single line and horizontally scrollable, either adding two arrows before the beginning tab and after the last tab, or scroll automatically are OK.

推荐答案

我有一个不同的方法来解决这个问题,因为我认为滚动标签是违反直觉的.我创建了一个插件来在选项卡中断到第二行时进行下拉.

I have a different approach to this issue, as I think a scroll for the tabs is counter-intuitive. I created a plugin to do a dropdown when the tabs break to a second line.

https://github.com/jasonday/plusTabs

这篇关于如果选项卡太多,如何使 Jquery UI 选项卡水平滚动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆