覆盖“重要”以使div隐藏

时间:2018-07-22 02:52:16

标签: html css

left: auto !important; 
top: -55px !important; 
right: 0px !important; 
bottom: auto !important; 
display: block !important; 
visibility: visible !important; 
position: absolute;

这是我需要隐藏的div的css样式。我尝试了很多不同的东西。我无法更改代码,但可以添加代码。

2 个答案:

答案 0 :(得分:0)

尝试以下方法之一:

opacity: 0 !important;
height: 0 !important;
width: 0 !important;

答案 1 :(得分:0)

尝试一下:

display: none !important;