Ordered list showing all zeros in IE9

前端 未结 11 563
眼角桃花
眼角桃花 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:18

    I came across this issue myself recently and came up with a different solution than including an empty div. Could definitely use more testing in different scenarios but this worked for me, even when the list was hidden and shown again.

    var ieTimeout;
    var selectorWrapperSet = $(selector);
    
    selectorWrapperSet.css("display","none");
    ieTimeout = setTimeout(function() {
    selectorWrapperSet.css("display","block");
    }, 1);
    

提交回复
热议问题