Skip to content

Instantly share code, notes, and snippets.

@libo1106
Created January 24, 2013 08:29
Show Gist options
  • Save libo1106/4618713 to your computer and use it in GitHub Desktop.
Save libo1106/4618713 to your computer and use it in GitHub Desktop.
position:relative元素在IE7下面,通过JS交互后位置异常补丁
/*
* 通过重绘来修复此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