如何更改网格视图的行数?

时间:2019-08-13 08:51:24

标签: html grid drupal-8

我创建的视图总共有13个网格,如下所示:

<div class="views-col clearfix col-1" style="width: 50%;">
  <div class="views-row row-1"></div>
  <div class="views-row row-2"></div>
  <div class="views-row row-3"></div>
  <div class="views-row row-4"></div>
  <div class="views-row row-5"></div>
  <div class="views-row row-6"></div>
  <div class="views-row row-7"></div>
</div>
<div class="views-col clearfix col-2" style="width: 50%;">
  <div class="views-row row-1"></div>
  <div class="views-row row-2"></div>
  <div class="views-row row-3"></div>
  <div class="views-row row-4"></div>
  <div class="views-row row-5"></div>
  <div class="views-row row-6"></div>
</div>

有什么办法可以将行从col-2移到col-1?

<div class="views-col clearfix col-1" style="width: 50%;">
  <div class="views-row row-1"></div>
  <div class="views-row row-2"></div>
  <div class="views-row row-3"></div>
  <div class="views-row row-4"></div>
  <div class="views-row row-5"></div>
  <div class="views-row row-6"></div>
  <div class="views-row row-7"></div>
  <div class="views-row row-8"></div>
  <div class="views-row row-9"></div>
</div>

将剩余的4个添加到views-col clearfix col-2吗?

0 个答案:

没有答案