首页 > 解决方案 > 带行的网格垂直定位

问题描述

我有这样的看法: 在此处输入图像描述

我的代码:

<div class="row">
  <div eds-tile class="xl-4" style="height: 700px">
    <eds-tile-title>User on Shift</eds-tile-title>
    <!-- <eds-gauge [settings]="gaugeScore"></eds-gauge> -->
  </div>
  <div eds-tile class="xl-4" style="height: 200px">
    <eds-tile-title>Count of Ticket Closed</eds-tile-title>
  </div>
  <div eds-tile class="xl-4" style="height: 200px">
    <eds-tile-title>Total Ticket</eds-tile-title>
  </div>
  <div eds-tile class="xl-8" style="height: 400px">
    <eds-tile-title>User on Shift Indicator</eds-tile-title>
  </div>
</div>

如果我想在 Count of Ticket Closed 框和 Total Ticket 框下移动 Shift Indicator 框上的用户,我应该怎么做?

帮帮我,谢谢...

标签: csshtml

解决方案


您可以将一个布局嵌套到另一个布局中,将两列嵌套为 4/8,然后在 8 列中,您可以将一行填满,另一半/一半。

也许它更简单的代码

<div class="row">
    <div eds-tile class="xl-4" style="height: 700px">
        <eds-tile-title>User on Shift</eds-tile-title>
        <!-- <eds-gauge [settings]="gaugeScore"></eds-gauge> -->
    </div>
    <div class="xl-8">
        <div class="row">
            <div eds-tile class="xl-6" style="height: 200px">
                <eds-tile-title>Count of Ticket Closed</eds-tile-title>
            </div>
            <div eds-tile class="xl-6" style="height: 200px">
                <eds-tile-title>Total Ticket</eds-tile-title>
            </div>
        </div>
        <div class="row">
            <div eds-tile class="xl-12" style="height: 400px">
                <eds-tile-title>User on Shift Indicator</eds-tile-title>
            </div>
        </div>
    </div>
</div>

推荐阅读