我使用tailwindcss
来创建一个侧边菜单,我需要一些活动的指示器,所以我需要在<li>
标签结束时显示边界.
现在它是这样显示的:
<div class="bg-bgcolor h-screen">
<aside class="w-20 bg-white pt-2 rounded-2xl flex flex-col justify-center h-4/5">
<ul class="flex flex-col items-center">
<li>
<div class=" text-white bg-black p-2 rounded-2xl">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" strokeWidth={1.5}
stroke="currentColor" class="w-6 h-6">
<path strokeLinecap="round" strokeLinejoin="round"
d="M2.25 12l8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25" />
</svg>
</div>
</li>
</ul>
</aside>
</div>
我想这样做