我试图设置 first
中的上方边距为 mt-10
,但是它不起作用。然而,如果我使用表达式 mx-10
,它就可以工作。
<div className="font-bold text-white">
<a id='first' className="mt-10">Explore</a>
<a id='second' className="mx-4">Collections</a>
<a id='third' className="mx-4">Profiles</a>
</div>
<div>
添加内边距,例如pt-10
。 - Ed Lucas