简体   繁体   中英

How to remove background-color in tailwindcss?

I'm wondering how can I remove background color from an existing div for a specific xl screen size? I want something like this background-color:unset , is this possible with 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>

You can use xl:bg-transparent .

In Tailwind, the class bg-transparent sets the css property background-color: transparent;

Tailwind documentation: https://tailwindcss.com/docs/background-color

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM