Bootstrap水平可滚动标签面板内容 [英] Bootstrap horizontal scrollable tab panel content

查看:210
本文介绍了Bootstrap水平可滚动标签面板内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图弄清楚 https://stackoverflow.com/a/25298473/7835535.我不想让内容垂直滚动,而是希望内容水平滚动.

I'm trying to figure out the horizontal version of https://stackoverflow.com/a/25298473/7835535. Instead of having the content scroll vertically, I want the content to scroll horizontally.

来自原始帖子的提琴手

<div class="container">
<div class="row">
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">Title</h3>
            <span class="pull-right">
                <ul class="nav panel-tabs">
                    <li class="active"><a href="#tab1" data-toggle="tab">Tab 1</a></li>
                </ul>
            </span>
        </div>            
        <div class="panel-body">
            <div class="tab-content">
                <div class="tab-pane active" id="test">
                    CONTENT
                </div>
            </div>
        </div>
    </div>
</div>

推荐答案

在这里找小提琴: http://jsfiddle .net/51n56p94/

您需要添加此CSS

.tab-pane{
    width:1000px;

}
.tab-content{
  overflow-x:scroll;
}

这篇关于Bootstrap水平可滚动标签面板内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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