小编Dar*_*win的帖子

如何设置证件卡的高度

我试图添加一张带有vue的卡片,并使用v-flex占用vuetify的空间,以使用v-flex来创建一张水平卡片,使其在垂直方向上的作用相同。我尝试使用填充高度,child-flex等添加100%的高度样式,但是我无法获得卡片的大小来填充容器。调整高度的正确方法是什么?

参考:https : //vuetifyjs.com/en/components/cards

<div id="app">
  <v-app id="inspire">
    <v-toolbar color="green" dark fixed app>
      <v-toolbar-title>My Application</v-toolbar-title>
    </v-toolbar>
    <v-content >
      <v-container fluid fill-height >
        <v-layout
          justify-center
          align-center 
        >
          <v-flex text-xs-center >
              <v-card class="elevation-20" >
              <v-toolbar dark color="primary">
                <v-toolbar-title>I want this to take up the whole space with slight padding</v-toolbar-title>
                <v-spacer></v-spacer>
              </v-toolbar>
              <v-card-text>

              </v-card-text>

            </v-card>
          </v-flex>
        </v-layout>
      </v-container>
    </v-content>
    <v-footer color="green" app inset>
      <span class="white--text">&copy; 2018</span>
    </v-footer>
  </v-app>
</div>
Run Code Online (Sandbox Code Playgroud)

例如:https//codepen.io/anon/pen/LmVJKx

css vue.js vuetify.js

9
推荐指数
2
解决办法
4万
查看次数

标签 统计

css ×1

vue.js ×1

vuetify.js ×1