Shadow artifacts during animation in IE9

后端 未结 5 2184
天涯浪人
天涯浪人 2021-02-19 15:59

Here are css, html and js to reproduce:

html:

123
345
5条回答
  •  萌比男神i
    2021-02-19 16:36

    The bad news is that the bug is worse in IE10. The good news is that this simple rule seems to fix it - at least it does in IE10. Since IE9 supports the :after pseudo class, it should also work.

    .Element:after {
    content: ".";
    font-size: 1px;
    display: inline;
    overflow: hidden;
    }
    

    Replace .Element with either the class name or ID (#Element) of the object that shows the artifact.

    In IE9, often assigning overflow: hidden will work - though that does not work in IE10.

提交回复
热议问题