Scroll Bootstrap 4 nav-tabs horizontally(水平滚动 Bootstrap 4 导航选项卡)
问题描述
我正在使用新的 Bootstrap 4 导航选项卡功能来创建选项卡.我试图让所有选项卡都保持在一条可以滚动的水平线上.
I am using the new Bootstrap 4 nav-tabs functionality to create tabs. I'm trying to make all the tabs stay in one horizontal line that can be scrolled.
我尝试了一些 JavaScript 插件,但似乎都不适用于 Bootstrap 4.
I tried some JavaScript plugins but none of it seem to work for Bootstrap 4.
到目前为止,这是我的代码.如果有人可以添加一个 JavaScript 函数来删除按钮上的滚动条,我将非常感激.
This is my code so far. If anyone can add a JavaScript function to remove the scrollbar at the button, I'd be very grateful.
我只是 JS 的新手.请帮忙
I'm just a newbie in JS. Please help out
推荐答案
在这里,您已将代码添加到 .row
中.但是,将使用 .row
.当您使用 col
网格系统时.在这里,您可以使用以下 Html 结构 &水平滚动的 css.
Here, You have add your code inside .row
. but, would be used .row
. when your are use col
grid system. Here, You can use following Html structural & css for horizontal scrolled.
这篇关于水平滚动 Bootstrap 4 导航选项卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!