@
MRG0 额,你还可以这么写,第二个开始,前面加个 width:100%的元素,隔开,做到换行的效果。
如果第二行开始需要两端对齐的话,那还是隔开处理吧。
```
<div class="flex h-screen w-screen items-center justify-center">
<div class="w-[600px] p-8">
<div class="mb-4 flex justify-between gap-4 border p-4">
<div class="shrink-0 text-gray-600">支付方式</div>
<div class="flex-grow flex flex-wrap justify-end">
<div class="border border-blue-400 p-2 text-sm text-gray-600 mb-2">按钮 11111111111111</div>
<div class="w-full"></div>
<div class="border border-blue-400 p-2 text-sm text-gray-600 mr-2">按钮 222</div>
<div class="border border-blue-400 p-2 text-sm text-gray-600 mr-2">按钮 333</div>
<div class="border border-blue-400 p-2 text-sm text-gray-600 mr-2">按钮 444</div>
<div class="border border-blue-400 p-2 text-sm text-gray-600">按钮 55555555</div>
</div>
</div>
</div>
</div>
```