简体   繁体   English

IE兼容模式下的浮动

[英]Floats in IE Compatibility Mode

Is there any way to avoid the shifting effect you get when resizing the browser in Internet Explorer Compatibility Mode? 在Internet Explorer兼容模式下调整浏览器大小时,是否有任何方法可以避免产生偏移效果? It doesn't happen in Chrome or Firefox. 在Chrome或Firefox中不会发生这种情况。 It also seems to work well in when Internet Explorer is NOT in Compatibility Mode. 当Internet Explorer不在兼容模式下时,它似乎也可以很好地工作。

Along with the shifting effect when resizing, sometimes the rows get out of sync a bit. 调整大小时,随着移位效果的发生,有时行有些不同步。

Any ideas? 有任何想法吗?

Here's the example (jsfiddle). 这是示例(jsfiddle)。

The issue is caused by your percentage widths. 该问题是由您的百分比宽度引起的。 If you take 1% off of .right and .inner that should solve your problem. 如果您将.right.inner 1%,那应该可以解决您的问题。 Live example: http://jsfiddle.net/Eq5s4/8/ 实时示例: http//jsfiddle.net/Eq5s4/8/

.right{
    float: right;
    width: 49%; 
 }

.inner{
    position: relative; 
    width: 49%;  
}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM