谁知道如何使用jQuery覆盖下面提到的CSS?
.actionButton.single-pet
{
display: none !important;
}
Run Code Online (Sandbox Code Playgroud)
它不适用于此: $('.actionButton.single-pet').show();
我正在尝试的是在元素上设置此CSS
background: red !important;
Run Code Online (Sandbox Code Playgroud)
所以,当我尝试这样做.
background: yellow;
Run Code Online (Sandbox Code Playgroud)
(我没有使用外部css)它仍然只显示那个字段的红色而不是黄色,就像我希望的那样.
我问的是如何覆盖它,是否可能?
默认情况下bootstrap已经box-sizing破坏了我的布局,我无法禁用它:
#menu_items {
-webkit-box-sizing: content-box !important;
-moz-box-sizing: content-box !important;
box-sizing: content-box !important;
width: auto;
list-style-type: none;
margin: 0px;
padding: 0px;
}
Run Code Online (Sandbox Code Playgroud)
这个提示不工作,删除box-sizing布局后工作正常
Quastion:
如何在我自己的布局上禁用此功能并禁用 in-herit
我写了一些html,并在第三方网站上注入了一些css样式.但是,由于一些声明,他们的造型与我的混乱!important.我不想要这个,我不想在我的风格中使用!important.
我该怎么做才能防止这种情况发生?