【发布时间】:2020-03-11 00:09:08
【问题描述】:
我有这张图片:
如你所见,里面有四个透明按钮,Home、Offers、About和Contact。
如何将它们对齐到图像的底部而不是顶部?
这是我的代码:
<v-img src="@/assets/banner/webbanner.png">
<v-container>
<v-row align="center" justify="center">
<v-btn
color="transparent"
class="mx-2 white--text"
depressed
width="200"
v-for="(button, index) in viewButtons"
:key="index"
>
{{ button.name }}
</v-btn>
</v-row>
</v-container>
</v-img>
【问题讨论】:
-
将此添加到您的组件样式中:
.container{ position: absolute; bottom: 0px } -
谢谢!您可以将其发布为答案,我会勾选它,以便有相同问题的人更容易看到。
标签: vue.js vuetify.js