有谁知道如何通过类星体类或弹性盒的小标题让动作转到最右侧?如果我替换右侧的文本,它会将操作推倒,但无论如何我都希望它们位于最右侧
代码笔:https://codepen.io/starlilycoco/pen/ZEZRLOE? editors=111
<div class="q-pa-md row items-start q-gutter-md">
<q-card class="my-card" flat bordered>
<q-card-section horizontal>
<div>Title</div>
<q-card-actions vertical align="right" class="justify-around q-px-md">
<q-btn flat round color="red" icon="favorite"></q-btn>
<q-btn flat round color="accent" icon="bookmark"></q-btn>
<q-btn flat round color="primary" icon="share"></q-btn>
</q-card-actions>
</q-card-section>
</q-card>
</div>
将
flex
和justify-between
类添加到您的 中<q-card-section horizontal>
,如下所示: