Display 包含三种情况block inline-block inline
效果如下图
代码实现
block
<div class="bg-gray-200 p-4">
<span class="block text-gray-700 text-center bg-gray-400 px-4 py-2"
>1</span
>
<span class="block text-gray-700 text-center bg-gray-400 px-4 py-2 mt-2"
>2</span
>
<span class="block text-gray-700 text-center bg-gray-400 px-4 py-2 mt-2"
>3</span
>
</div>
inline-block
<div class="bg-gray-200 p-4">
<span
class="inline-block text-gray-700 text-center bg-gray-400 px-4 py-2 m-2"
>1</span
>
<span
class="inline-block text-gray-700 text-center bg-gray-400 px-4 py-2 m-2"
>2</span
>
<span
class="inline-block text-gray-700 text-center bg-gray-400 px-4 py-2 m-2"
>3</span
>
</div>
inline
<div class="bg-gray-200 p-4">
<span class="inline text-gray-700 text-center bg-gray-400 px-4 py-2 m-2"
>1</span
>
<span class="inline text-gray-700 text-center bg-gray-400 px-4 py-2 m-2"
>2</span
>
<span class="inline text-gray-700 text-center bg-gray-400 px-4 py-2 m-2"
>3</span
>
</div>
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。