在卡内添加垂直线

时间:2020-11-08 11:46:23

标签: vue.js bootstrap-4

我想用引导程序制作这样的卡,这意味着我想将其分为三个部分,而不管卡中包含什么数据和图标

enter image description here

但是我无法将其分为三个部分,我该怎么做?

我能够以这种方式显示卡片:

enter image description here

我该如何解决这个问题?

Card.vue:

MainWindow

1 个答案:

答案 0 :(得分:1)

这是您要寻找的吗?您可以为此使用引导网格,请检出docs

.row{
    background-color: #efefef;
}

.col{
  background-color: white;
  margin: 5px;
}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">

<div class="card">
<div class="container-fluid">
    <div class="row">
      <div class="col">
        One of three columns
      </div>
      <div class="col">
        One of three columns
      </div>
      <div class="col">
        One of three columns
      </div>
    </div>
    </div>

</div>