bootstrap响应式布局列子
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- 上述3个meta标签*必须*放在最前面,任何其他内容都*必须*跟随其后! -->
<title>Bootstrap 101 Template</title>
<!-- Bootstrap -->
<link href="boot/css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="//cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<!-- 导航开始 -->
<nav class="navbar navbar-inverse">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">my website</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Home <span class="sr-only">(current)</span></a></li>
<li><a href="#">About</a></li>
<li><a href="#">Content</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- 导航结束 -->
<div class="container">
<div class="row">
<div class="col-sm-9">
<p class="pull-right visible-xs">
<button class="btn btn-xs btn-primary">toggle</button>
</p>
<div class="jumbotron">
<h1>Hello, world!</h1>
<p>this is my website</p>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
<div class="col-xs-12 col-sm-6 col-md-4 col-lg-4">
<h2>header</h2>
<p>this is content this is content this is content this is content
this is content this is content this is content this is content </p>
<a href="#" class="btn btn-default">more</a>
</div>
</div>
</div>
<div class="col-sm-3">
<ul class="list-group">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Morbi leo risus</li>
<li class="list-group-item">Porta ac consectetur ac</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="//cdn.bootcss.com/jquery/3.0.0-alpha1/jquery.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="//cdn.bootcss.com/html5shiv/r29/html5.js"></script>
<script src="//cdn.bootcss.com/respond.js/1.4.2/respond.js"></script>
<script src="boot/js/bootstrap.min.js"></script>
</body>
</html>