CSS Why left rule is given precedence over right rule when there’s a width?

后端 未结 5 606
生来不讨喜
生来不讨喜 2020-12-21 11:52

I have this CSS code:

#div1{
 height:200px;
 width:200px;
 background-color:red;
 position:absolute;
 right:30px !important; 
 left:0px;
 }

5条回答
提交回复
热议问题