简体   繁体   English

如何删除tailwindcss中的背景颜色?

[英]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?我想知道如何从现有div中删除特定xl屏幕尺寸的背景颜色? I want something like this background-color:unset , is this possible with tailwind.css ?我想要这样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>

You can use xl:bg-transparent .您可以使用xl:bg-transparent

In Tailwind, the class bg-transparent sets the css property background-color: transparent;在 Tailwind 中, class bg-transparent设置 css 属性background-color: transparent;

Tailwind documentation: https://tailwindcss.com/docs/background-color顺风文档: https://tailwindcss.com/docs/background-color

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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