!important的优先级不一定是最高的。
<style>
div {
width: 500px !important;
height: 500px !important;
min-width: 1000px;
min-height: 1000px;
background-color: aquamarine;
}
</style>
<div>a</div>
!important的优先级不一定是最高的。
<style>
div {
width: 500px !important;
height: 500px !important;
min-width: 1000px;
min-height: 1000px;
background-color: aquamarine;
}
</style>
<div>a</div>