use*_*987 10 html css twitter-bootstrap
我在bootstrap中有两列列.如何在列之间创建空间. - 我的第一个col是8,但是我想把它变成7并且只有1列作为空格.
这是我的bootply:http: //www.bootply.com/mwGajBOEVe
这是我的HTML.
<div class="container">
<div class="row">
<div class="col-md-8">
<p>The apple tree (Malus domestica) is a deciduous tree in the rose family best known for its sweet, pomaceous fruit, the apple.</p>
</div>
<div class="col-md-4"">
The orange (specifically, the sweet orange) is the fruit of the citrus species Citrus × sinensis in the family Rutaceae.</div>
</div>
</div>
Run Code Online (Sandbox Code Playgroud)
我应该创建空列来执行此操作吗?
Kir*_*eck 11
不,使用偏移这样
<div class="row">
<div class="col-md-4">.col-md-4</div>
<div class="col-md-4 col-md-offset-4">.col-md-4 .col-md-offset-4</div>
</div>
<div class="row">
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
<div class="col-md-3 col-md-offset-3">.col-md-3 .col-md-offset-3</div>
</div>
<div class="row">
<div class="col-md-6 col-md-offset-3">.col-md-6 .col-md-offset-3</div>
</div>
Run Code Online (Sandbox Code Playgroud)