Ordered list showing all zeros in IE9

前端 未结 11 561
眼角桃花
眼角桃花 2020-12-03 04:55

I have an

    (ordered list) and in FF, Safari, Chrome it is rendered correctly. However in IE9 it is showing all zeros. It is not a spacing/padding is
11条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-03 05:14

    @Alex Kleshchevnikov - http://choosedaily.com/2481/ie9-bug-ordered-list-zeroes-ajax-request/

    I was using that code; but, I was still getting zero's. I have modified it to add another OL after the offending one and then hide it shortly afterwards.

    "windows_instructions" is the OL that I'm fixing zero's for. "ie_fix" is the dummy OL I'm hiding. I tried using 2 ms as the second timeout; but, it wasn't enough time. Since my ajax content is fading in, I'm not getting a FOUC with 100 ms.

    If it's helpful to future fixes, it seems like the issue is always with the last OL on the page.

    Here's the code:

    if($("#windows_instructions").length>0)
        {
            $("#windows_instructions").hide();
            ieTimeout = setTimeout(function() 
            {    
                $("#windows_instructions").show();
            }, 1);
            ieTimeout = setTimeout(function() 
            {    
                $("#ie_fix").hide();
            }, 100);
        }
    

提交回复
热议问题