我试图找出https://stackoverflow.com/a/25298473/7835535的横向版本。我希望内容能够水平滚动,而不是让内容垂直滚动。
Fiddle taken from the original post
<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>
答案 0 :(得分:1)
这里你去小提琴:http://jsfiddle.net/51n56p94/
您需要添加此css
.tab-pane{
width:1000px;
}
.tab-content{
overflow-x:scroll;
}