如何覆盖背景颜色:#000000 !important; [英] how to overide background-color: #000000 !important;
本文介绍了如何覆盖背景颜色:#000000 !important;的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想覆盖 WordPress 项目上的 background-color: black !important
属性或删除该属性,但在我的 CSS 文件中找不到它.
I want to override the background-color: black !important
property on a WordPress project or delete that property but I can't find it in my CSS Files.
#top-nav > div > ul > li.current-menu-item, #top-nav > div > div > ul > li.current-menu-item, #top-nav > div > ul > li:hover, #top-nav > div > div > ul > li:hover, .top-nav-list > li > ul li:hover, .top-nav-list ul li ul li:hover {
background-color: #000000 !important;
}
推荐答案
你可以通过创建 mixin 来覆盖.test{background:red !important;} @mixin test{.test{background: blue !important;} }@include test();
you can override by creating mixin
.test{background:red !important;} @mixin test{.test{background: blue !important;} }@include test();
这篇关于如何覆盖背景颜色:#000000 !important;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文