Bootstrap可滚动标签面板内容 [英] Bootstrap scrollable tab panel content
本文介绍了Bootstrap可滚动标签面板内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想知道是否可以使选项卡面板中的内容可滚动.我已经尝试了几件事,但是我没有对它进行排序.
I'm wondering if I can make the content in my tab panel scrollable. I have tried a couple things but I don't get it sorted.
<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/f3p35v76/
推荐答案
您是否正在寻找要在窗格中滚动的内容?
Are you looking for the content to scroll within the pane?
小提琴: http://jsfiddle.net/uxsr66hp/1/
.tab-pane{
height:300px;
overflow-y:scroll;
width:100%;
}
这篇关于Bootstrap可滚动标签面板内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文