ie6下js更新元素display:block后,仍然不显示的hack办法

$hotGames.html(html).removeClass("hide").show();//代码执行到这里,在ie6下仍然无法正常显示
//只有执行了下边的两行代码后,才正常显示。
if (isIE6 === true) {
$hotGames.css({"position":"absolute"});
setTimeout(function(){$hotGames.css({"position":"static"});},0);
}

  

记着上边这段代码,解决了ie6一个很奇葩的问题。至于原因,呃,我只想说:”fuck ie6“

原文地址:https://www.cnblogs.com/pao8041/p/4957345.html