<link href="https://cdn.jsdelivr.net/npm/tailwindcss/dist/tailwind.min.css" rel="stylesheet"/>
<div class="border-b flex">
<div class="w-1/6 flex items-center justify-center p-4 border-r text-sm">
14 hours ago
</div>
<div class="w-3/5 p-4 text-sm"><span>
Dolor aliquid ipsa qui eum in voluptatem Sit non quae illo eveniet exercitation cupiditate veniam sed id animi
</span>
</div>
<div class="w-1/5 flex justify-end items-center p-4 relative">
<button class="bg-white border rounded px-1 py-1 text-xs"><i class="fa fa-chevron-down"></i></button>
<div class="absolute pin-b pin-r bg-white border w-32 items-center justify-center">
<ul class="list-reset p-2">
<li>Delete</li>
</ul>
</div>
</div>
</div>
正如您从我的代码片段中看到的那样,下拉列表扩展了父边框而不是覆盖(绝对)它们,我怎样才能得到它,所以我的下拉列表(删除)不会更改父 div,而只是像下图一样覆盖它们: