如何去掉开发者工具无法选中的白色space
How to remove white space that cannot be selected with developer tools
我的网站上有白色 space,我无法使用开发人员工具识别它并想删除:
我创建了一个 Tailwind Play example。
如何去除封面图片和文章框之间的白色space?
在 header
元素上。你给了它一个 min-h-screen
的 class,并在该元素上给出了 min-height: 100vh;
。
您还将 top-[-3.75rem]
应用于给出 top: -3.75rem
的元素。删除它应该删除额外的 space.
<header class="flex w-full relative top-[-3.75rem] mx-auto bg-black min-h-screen items-center justify-center">
</header>
我的网站上有白色 space,我无法使用开发人员工具识别它并想删除:
我创建了一个 Tailwind Play example。 如何去除封面图片和文章框之间的白色space?
在 header
元素上。你给了它一个 min-h-screen
的 class,并在该元素上给出了 min-height: 100vh;
。
您还将 top-[-3.75rem]
应用于给出 top: -3.75rem
的元素。删除它应该删除额外的 space.
<header class="flex w-full relative top-[-3.75rem] mx-auto bg-black min-h-screen items-center justify-center">
</header>