Twitter bootstrap 使用空列在一个引导行类中添加多个12列行

Twitter bootstrap 使用空列在一个引导行类中添加多个12列行,twitter-bootstrap,twitter-bootstrap-3,Twitter Bootstrap,Twitter Bootstrap 3,我想在一个引导行类中添加多个12列行。但如果使用空列(我称之为单元格),那么这就行不通了 代码: 包含此条目的第一行 包含此条目的第二行 但我不想使用,例如这里: <div class="col-md-1"> &nbsp;<!-- no text --> </div> 对最左边的列使用col-md-offset-1 <div class="row"> <div class="col-md-10 col-md-

我想在一个引导行类中添加多个12列行。但如果使用空列(我称之为单元格),那么这就行不通了

代码:


包含此条目的第一行
包含此条目的第二行
但我不想使用,例如这里:

<div class="col-md-1">
    &nbsp;<!-- no text -->
</div>

对最左边的列使用
col-md-offset-1

<div class="row">
      <div class="col-md-10 col-md-offset-1">
          First row with this entry
      </div>
      <div class="col-md-1">
          <!-- no text -->
      </div>
      <div class="col-md-10 col-md-offset-1">
          Second row with this entry
      </div>
      <div class="col-md-1">
          <!-- no text -->
      </div>
</div>

包含此条目的第一行
包含此条目的第二行

使用,您应该将div包装在
.col-md-12
中。仅将第一行与此条目一起使用第二行与此条目一起使用是相同的输出。为什么?我不明白col-md-offset-1你不明白什么?偏移只是将列1单元“推”到右侧。好的,但为什么这里需要偏移?为什么不在输入文本之前使用它们呢?它们不是必需的。我以为你的问题是如何避免使用
<div class="row">
      <div class="col-md-10 col-md-offset-1">
          First row with this entry
      </div>
      <div class="col-md-1">
          <!-- no text -->
      </div>
      <div class="col-md-10 col-md-offset-1">
          Second row with this entry
      </div>
      <div class="col-md-1">
          <!-- no text -->
      </div>
</div>