Heim > Artikel > Web-Frontend > 一段关于float在IE7以上及FF浏览器不支持的代码_html/css_WEB-ITnose
ie7 firefox chrome ie8 float
代码如下:
#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; }
#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; }
#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; }