[英]How to remove background-color in tailwindcss?
我想知道如何從現有div
中刪除特定xl
屏幕尺寸的背景顏色? 我想要這樣background-color:unset
,這可以用tailwind.css
嗎?
<div class="fixed bottom-0 bg-baseorange p-4 left-0 w-full z-10 xl: bg-none xl:absolute lg:absolute xl:bottom-22 xl:right-20 lg:bottom-22 lg:right-20"> </div>
您可以使用xl:bg-transparent
。
在 Tailwind 中, class bg-transparent
設置 css 屬性background-color: transparent;
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.