在ie8+有效:
div:after{ /*IE8+清除浮动*/
content:'';
display: table;
clear:both;
}
在ie下:
在定位元素上加一个空div
<div></div>/*解决定位问题*/
<div style="position:absolute;top:0;"></div>
在ie8+有效:
div:after{ /*IE8+清除浮动*/
content:'';
display: table;
clear:both;
}
在ie下:
在定位元素上加一个空div
<div></div>/*解决定位问题*/
<div style="position:absolute;top:0;"></div>