日期:2014-05-17  浏览次数:20575 次

jquery-loadmask not working properly in IE8
jQuery("#content").mask("Processing...."); ①
ajax............. ②
jQuery("#content").unmask(); ③

上面的代码是想实现:ajax请求前遮罩,ajax完成后取消遮罩。

firefox下正常,ie下完全看不到效果。
假如在unmask里延时一下,可以看到效果。但看起来(视觉效果)执行顺序像是②①③。
http://stackoverflow.com/questions/7422792/jquery-loadmask-not-working-properly-in-ie8

it was issue with DOM not refreshing in IE that quick. Fixed this by focusing mask div after making call to load it.

stackoverflow上有人问了一道相同的问题,答案如上。
但我完全看不懂focusing mask div after making call to load it.的具体做法是什么,求详解


------解决方案--------------------
ie8下是可以的啊

http://jquery-loadmask.googlecode.com/svn/trunk/demo/index.html

例子