【发布时间】:2012-07-13 01:36:16
【问题描述】:
如何在ie6 中用float:right 修复display:inline-block(display:inline)?
代码输入:http://jsfiddle.net/VGaGt/
html
<div>
text<span>>></span>
</div>
css
div{
float:left;
width: 300px;
height: 20px;
padding:5px;
background:#ccc;
}
span{
float:right;
width:20px;
height:20px;
display:inline-block;
zoom:1;
*display:inline;
cursor: pointer;
}
【问题讨论】:
-
我们能知道您所面临的具体问题是什么吗?
-
@freebird,我将代码复制到 jsfiddle,你可以在你的 ie6 中测试,
span在新行中。但我需要div内的跨度,在text和float:right之后。 -
是的,我测试并得到了问题,它在 IE 更高版本中工作正常吗?
标签: internet-explorer-6 css-float