flex wrap 三种情况 don't wrap,wrap normally,wrap reserved
don't wrap
效果
代码
<div class="flex flex-no-wrap bg-gray-200">
<div class="w-2/5 flex-none p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">1</div>
</div>
<div class="w-2/5 flex-none p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">2</div>
</div>
<div class="w-2/5 flex-none p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">3</div>
</div>
</div>
wrap normally
效果
代码
<div class="flex flex-wrap bg-gray-200">
<div class="w-2/5 p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">1</div>
</div>
<div class="w-2/5 p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">2</div>
</div>
<div class="w-2/5 p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">3</div>
</div>
</div>
wrap reserved
效果
代码
<div class="flex flex-wrap-reverse bg-gray-200">
<div class="w-2/5 p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">1</div>
</div>
<div class="w-2/5 p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">2</div>
</div>
<div class="w-2/5 p-2">
<div class="text-gray-700 text-center bg-gray-400 p-2">3</div>
</div>
</div>
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。