测开之路一百一十五:常用组件之面板

 

 

面板: panel

测开之路一百一十五:常用组件之面板

 

引入bootstrap和jquery

测开之路一百一十五:常用组件之面板

 

 

面本正文panel-body,default:默认风格

测开之路一百一十五:常用组件之面板

 

测开之路一百一十五:常用组件之面板

 

 

头部:panel-heading,primary:主要风格

测开之路一百一十五:常用组件之面板

 

测开之路一百一十五:常用组件之面板

 

 

页尾:panel-footer:danger:危险

测开之路一百一十五:常用组件之面板

 

测开之路一百一十五:常用组件之面板

 

 

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>bootstrap布局</title>
<!--网页源数据跨平台兼容做一些说明-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--跨屏自适应说明-->
<meta name="viewport" content="width=device-width, initial-scale=1">

<link href="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<script src="https://cdn.bootcss.com/jquery/2.2.4/jquery.min.js"></script>
<script src="https://cdn.bootcss.com/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>
<h1>panel面板</h1>

<!--正文-->
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-default">
<div class="panel-body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur corporis dignissimos eius eos in
ipsa iste, mollitia, nam nostrum odit omnis placeat ratione rerum sequi sunt tempora tempore temporibus
totam!
</div>
</div>
</div>
</div>
</div>

<p></p>
<!--头部-->
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-primary">
<div class="panel-heading">
<h4>这是panel头部</h4>
</div>
<div class="panel-body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur corporis dignissimos eius eos in
ipsa iste, mollitia, nam nostrum odit omnis placeat ratione rerum sequi sunt tempora tempore temporibus
totam!
</div>
</div>
</div>
</div>
</div>

<p></p>

<!--尾部-->
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="panel panel-danger">
<div class="panel-heading">
<h4>这是panel头部</h4>
</div>
<div class="panel-body">
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Consectetur corporis dignissimos eius eos in
ipsa iste, mollitia, nam nostrum odit omnis placeat ratione rerum sequi sunt tempora tempore temporibus
totam!
</div>
<div class="panel-footer">
<div>&copy; 版权所有</div>
</div>
</div>
</div>
</div>
</div>

</body>
</html>

 

上一篇:【APICloud系列|40】用户登录的实现


下一篇:C++智能指针之shared_ptr与右值引用(详细)