浮动 ie 产生的双倍距离

浮动 ie 产生的双倍距离 #box{ float:left; width:10px; margin:0 0 0 100px;}

这种情况之下 IE 会产生 20px 的距离,解决方案是在 float 的标签样式控制中加入 —— _display:inline;将其转化为行内属性。(_这个符号只有 ie6 会识别)

posted @ 2018-03-24 17:55  好笑。  阅读(136)  评论(0编辑  收藏  举报