Created
January 24, 2013 08:29
-
-
Save libo1106/4618713 to your computer and use it in GitHub Desktop.
position:relative元素在IE7下面,通过JS交互后位置异常补丁
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 通过重绘来修复此bug,给位置异常元素添加上.bug_fixed | |
*/ | |
function bug_fixed_for_ie(){ | |
$('.bug_fixed').each(function(i){ | |
this.className = this.className; | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment