【发布时间】:2020-12-31 02:56:40
【问题描述】:
我正在尝试使用 2 列的布局,我希望它们具有相同的高度,并且里面的内容应该垂直居中。
这是我在 vuetify 中的代码
<div id="app">
<v-app>
<v-row align="center">
<v-col cols=6 style="background-color: #FF5000;" align="center">
<v-btn class="m">Column 1</v-btn>
</v-col>
<v-col cols=6 style="background-color: #5fc3c7;">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</v-col>
</v-row>
</v-app>
</div>
我已尝试将<v-row align="center"> 更改为<v-row align="stretch">,该列按我的意愿拉伸,但内容不在中心。..
【问题讨论】:
标签: html css vue.js vuetify.js