<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>列排序</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<link rel="stylesheet" href="common.css">
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-4 col-xs-push-8">.col-md-4</div>
<div class="col-xs-8 col-xs-pull-4">.col-md-8</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-xs-4 col-xs-pull-8">.col-md-4</div>
<div class="col-xs-8 col-xs-push-4">.col-md-8</div>
</div>
</div>
</body>
</html>
pull是向左偏移,push是向右,
<div class="row">
<div class="col-xs-4 col-xs-pull-8">.col-md-4</div>
<div class="col-xs-8 col-xs-push-4">.col-md-8</div>
</div>
这段代码里的<div class="col-xs-4 col-xs-pull-8">.col-md-4</div>都跑到这里了。
恩,是的。