Bootstrap响应式前端框架笔记十五——面板与井
Bootstrap中的面板由pannel相关类来创建,一个完整的面板分为面板头部、面板体和面板注脚,并且Bootstrap中默认定义了一些面板风格,示例如下:
<p>标准样式的面板</p>
<div class="panel panel-default">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="panel-footer">
面板注脚..........
</div>
</div>
<div class="panel panel-primary">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="panel-footer">
面板注脚..........
</div>
</div>
<div class="panel panel-success">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="panel-footer">
面板注脚..........
</div>
</div>
<div class="panel panel-info">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="panel-footer">
面板注脚..........
</div>
</div>
<div class="panel panel-warning">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="panel-footer">
面板注脚..........
</div>
</div>
<div class="panel panel-danger">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="panel-footer">
面板注脚..........
</div>
</div>
效果如下:
<p>在面板中追加列表组</p>
<div class="panel panel-danger">
<div class="panel-heading">
面板标题
</div>
<div class="panel-body">
面板内容.........
</div>
<div class="list-group">
<div class="list-group-item">数据</div>
<div class="list-group-item">数据</div>
<div class="list-group-item">数据</div>
<div class="list-group-item">数据</div>
</div>
</div>
效果如下:
<p>Well效果</p>
<div class="well">
这里是内容!!!!!!!
</div>
效果如下: