【问题标题】:How to remove background-color in tailwindcss?如何删除tailwindcss中的背景颜色?
【发布时间】:2022-01-05 08:17:26
【问题描述】:

我想知道如何从现有的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>

【问题讨论】:

    标签: css tailwind-css


    【解决方案1】:

    您可以使用xl:bg-transparent

    在 Tailwind 中,bg-transparent 类设置 css 属性 background-color: transparent;

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-02-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多