我试图添加一张带有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">© 2018</span>
</v-footer>
</v-app>
</div>
Run Code Online (Sandbox Code Playgroud)