加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

twitter-bootstrap – 我应该放一个空列来腾出空间吗?

发布时间:2020-12-18 00:22:26 所属栏目:安全 来源:网络整理
导读:我在bootstrap中有一个两列的行.如何在列之间创建空间. – 我的第一个col是8,但是我想让它成为7并且只有1列作为空格. 这是我的bootply: http://www.bootply.com/mwGajBOEVe 这是我的HTML. div class="container" div class="row" div class="col-md-8" pThe
我在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>

解决方法

不,像这样使用 offsets
<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>

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读