ie7 firefox chrome ie8 float
The code is as follows:
.....
#a{
width:100px;
height:100px;
background- color:red;
border:5px solid #bbbbbb;
float:left;
}
#b{
width:100px;
height:100px;
background- color:green;
border:5px solid #bbbbbb;
}
#c{
width:100px;
height:100px;
background-color:yellow;
border:5px solid #bbbbbb;
float:left;
}
......
ef063bec93c7d2fd366870dafe54b63b1116b28748ea4df4d9c2150843fecfba68
700c1a4f1da92827636f8db3c98197552216b28748ea4df4d9c2150843fecfba68
fc4a012aad3345c2263979a80a7dad303316b28748ea4df4d9c2150843fecfba68
.......
My question Yes, why does it display "normal" under IE7
but "abnormal" under IE8/9, firefox and chrome? So how do I display it normally under IE8/9, firefox and chrome? ?
Reply to discussion (solution)
#a { width: 100px; height: 100px; background-color: red; border: 5px solid #bbbbbb; float: left; } #b { width: 100px; height: 100px; background-color: green; border: 5px solid #bbbbbb; display:inline-block; } #c { width: 100px; height: 100px; background-color: yellow; border: 5px solid #bbbbbb; }
in Chrome and IE9
#a { width: 100px; height: 100px; background-color: red; border: 5px solid #bbbbbb; float: left; } #b { width: 100px; height: 100px; background-color: green; border: 5px solid #bbbbbb; display:inline-block; } #c { width: 100px; height: 100px; background-color: yellow; border: 5px solid #bbbbbb; }
in Chrome and IE9
Thanks for the answer! What is the principle of this?
#a { width: 100px; height: 100px; background-color: red; border: 5px solid #bbbbbb; float: left; } #b { width: 100px; height: 100px; background-color: green; border: 5px solid #bbbbbb; display:inline-block; } #c { width: 100px; height: 100px; background-color: yellow; border: 5px solid #bbbbbb; }
in Chrome and IE9
Thanks for the answer! What is the principle of this?
It’s just browser style recognition, the same attributes are recognized differently
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn