【发布时间】:2021-07-01 12:56:11
【问题描述】:
它看起来像什么,我想要什么:
<v-row>
<v-col md="6" v-bind:key="el._id" v-for="el in els">
<v-card max-width="280" tile elevation="0" outlined>{{ text }}</v-card>
<v-img class="my-10" height="100" width="200" contain :src="src"></v-img>
</v-col>
</v-row>
我尝试了所有在互联网和文档中找到的元素:
class="justify-start"
align="start"
justify="start"
和:
style="justify-content: start !important;
align-content: flex-start !important;
align-items: flex-start !important;
align-self: flex-start !important;
justify-self: flex-start !important;"
但没有任何效果。
【问题讨论】:
-
您是否尝试在您的 v-row 中添加 no-gutters ?
-
它不起作用:(
-
如果在 v-col 中添加类似 cols="6" 的内容会怎样?
-
@Xanthous 然后什么都没有发生,因为
cols="6"对我来说就像md="6"所以它是一样的 -
您能否从您的组件中添加更多代码到您的问题中?我看不出这不起作用的原因,你有容器或类似的东西吗?
标签: html css vue.js templates vuetify.js