工作列表组引导程序
Working list-group bootstrap
现在我很难找到如何使list-group
工作。我想要左侧的一个面板,使用col-lg-9
。右侧有一个选择菜单,使用col-lg-3
。
我不希望此选择菜单动态更改页面的内容。因此,当我点击项目1时,面板会提供项目1的信息。
到目前为止,我已经了解了这一点,但这还不起作用。
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class='container'>
<div class='row'>
<div class='col-lg-9'>
<div class='panel panel-default' id='panel1'>
<div class='panel-body'>
<div class='page-header'>
<h3>The first panel <small>Posted on december 23 2015</small></h3>
</div>
<img class='featuredImg' src='resources/screenshot1.png'>
<p>Another paragraph</p>
<h4>This is a header</h4>
<p>Paragraph to match this header</p>
</div>
</div>
<div class='panel panel-default' id='panel2'>
<div class='panel-body'>
<div class='page-header'>
<h3>This is panel two <small>Posted on december 24 2015</small></h3>
</div>
<p>This is a paragraph for panel two</p>
<h4>This is a sub header for panel two</h4>
<p>This is content belonging to subheading of panel two</p>
</div>
</div>
</div>
<div class='col-lg-3'>
<div class='list-group'>
<a href='#panel1' class='list-group-item active' data-toggle='tab'>
<h4 class='list-group-item-heading'>Item 1</h4>
<p class='list-group-item-text'>Short info about the item</p>
</a>
<a href='#panel2' class='list-group-item' data-toggle='tab'>
<h4 class='list-group-item-heading'>Item 2</h4>
<p class='list-group-item-text'>Short info about the item</p>
</a>
</div>
</div>
</div>
</div>
如果我理解正确,您需要将tabs
和item-list
组件结合起来。
像这样:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" />
<div class='container'>
<div class='row'>
<div class='col-lg-9 tab-content'>
<div class='panel panel-default tab-pane active' id='panel1'>
<div class='panel-body'>
<div class='page-header'>
<h3>The first panel <small>Posted on december 23 2015</small></h3>
</div>
<img class='featuredImg' src='resources/screenshot1.png'>
<p>Another paragraph</p>
<h4>This is a header</h4>
<p>Paragraph to match this header</p>
</div>
</div>
<div class='panel panel-default tab-pane' id='panel2'>
<div class='panel-body'>
<div class='page-header'>
<h3>This is panel two <small>Posted on december 24 2015</small></h3>
</div>
<p>This is a paragraph for panel two</p>
<h4>This is a sub header for panel two</h4>
<p>This is content belonging to subheading of panel two</p>
</div>
</div>
</div>
<div class='col-lg-3'>
<ul class='list-group'>
<li class="list-group-item active">
<a href='#panel1' data-toggle='tab'>
<h4 class='list-group-item-heading'>Item 1</h4>
<p class='list-group-item-text'>Short info about the item</p>
</a>
</li>
<li class="list-group-item">
<a href='#panel2' data-toggle='tab'>
<h4 class='list-group-item-heading'>Item 2</h4>
<p class='list-group-item-text'>Short info about the item</p>
</a>
</li>
</ul>
</div>
</div>
</div>
相关文章:
- 如何保持引导程序下拉复选框列表下拉
- Twitter引导程序在下拉列表打开时停止传播
- jQuery,引导程序下拉列表问题
- 引导程序下拉列表显示不正确
- 引导程序在单击另一个下拉列表时关闭下拉列表
- 引导程序选择下拉列表
- 引导程序的下拉列表不起作用
- 引导程序 3 下拉列表不会更新
- 用angularjs填充引导程序下拉列表
- 表详细信息中的引导程序下拉列表
- 使用引导程序时无法禁用下拉列表
- 如何更改引导程序多选下拉列表的高度和字体大小
- 引导程序多选下拉列表不是下拉列表
- 如果字符串位于iframe之后,则不会使用引导程序列表显示
- 引导程序下拉列表与jQuery.dropdown冲突
- 将数据绑定添加到引导程序下拉列表
- 引导程序中的单个日期、月份和年份下拉列表
- 需要使用引导程序的列表组制作“幻灯片”
- 是否可以遍历引导程序列表
- 引导程序 3 中的导航栏下拉列表