有几个帖子与此有关,但没有一个实际给出解决方案。JQuery .show()和等效的CSS修改不适用于IE 8
实际上会发生什么情况如下:
function LoadSpinner()
{
$("#divSpinner").css('display','block'); // could have done with .show()
}
function UnloadSpinner()
{
$("#divSpinner").css('display','none'); // could have done with .hide()
}
function OnClickMyButton()
{
LoadSpinner();
AnAjaxCall(); // it's set to async: false, that means the ajax call must finish before execution continues
UnloadSpinner();
}
我想评论的UnloadSpinner()和它在IE 8,显示它可能是它发生得这么快,我没有看到它。但我对此并不太确定,即使对于一些较慢的操作它也没有出现。
虽然它在Firefox上工作正常。
作为一个jQuery错误,这不属于SO - 让jQ开发团队知道,他们会解决它。 – You 2010-10-20 10:26:11
你可以举报bug报告=> http://bugs.jquery.com。顺便说一句,你必须显示你的代码:) – 2010-10-20 10:30:33