Get the App
SLTechnology News&Howtos  ›  Development  › 

How to solve the problem of inconsistent interpretation of BOX Model

Shulou Source: shulou.com Published: 2022-06-01 03:53:00 09月22日 Update

Editor to share with you how to solve the problem of inconsistent interpretation of the BOX model, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

The inconsistent interpretation of the BOX model in FF and IE leads to a difference in 2px resolution skills: div {marginal margin 30px important importance 28px;} Note that the order of the two margin must not be reversed, the attribute IE of important is not recognized, but other browsers can recognize it. So under IE, it is actually interpreted as follows:

Div {maring:30px;margin:28px} if the definition is repeated, follow the last one, so you can't just write margin:xx pxboxes importantity.box {width:600px; / / for ie6.0- w\ idth:500px; / / for ff+ie6.0}

# box {widthfor ff+ie6.0 width 600pxpackages / / for ff width:600px; / / for ff+ie6.0 width / * * /: 500px; / / for ie6.0-}

The above is all the content of the article "how to solve the problem of inconsistent interpretation of BOX model". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Explanation consistency model article question content not much two most properties skills more browsers knowledge industry information information channels order channels references Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Microsoft MariaDB Shulou Technology OPPO Reno