简体   繁体   English

当使用jQuery .hover()移动相对定位的div时,如何解决IE6 / IE7边距消失的问题?

[英]How to work around IE6/IE7 margins disappearing when relatively-positioned floated div is moved with jquery .hover()?

Here is my code: 这是我的代码:

http://jsbin.com/uhera3/edit http://jsbin.com/uhera3/edit

When I use jQuery to .hover(), the relatively positioned floated divs jump to the left (seemingly losing their margins) in IE7. 当我使用jQuery来.hover()时,IE7中相对定位的浮动div跳至左侧(似乎失去了边距)。

Any ideas how to fix this? 任何想法如何解决这一问题?

我建议实现IE条件标签并制作一个ie-fix.css文件。

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

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