zishu's blog

zishu's blog

一个热爱生活的博主。https://zishu.me

Compatibility handling for IE10

  1. Arrow functions are not supported in IE10, so use them with caution when writing JavaScript.

  2. IE10 has strict syntax requirements for JavaScript. If there is no additional code after a normal parameter, adding a comma will result in an error. However, removing the comma will resolve the issue, and it will not affect Chrome.

  3. Avoid using the zoom property if possible. I used zoom to adjust the size in Chrome, but when I ran it in IE10, the entire page was misaligned. After searching for a while, I remembered that I had previously set zoom: 1.1; for a container. It was quite troublesome.

  4. In IE10, the img tag has a default white border. To remove it, set border: none; in the default style.

img {
    border: none;
}
  1. IE10 is compatible with most HTML5 new tags, except for main.

  2. The box-shadow property is actually supported in IE10, but there is a syntax issue to be aware of. In regular browsers, colors can be specified using rgba, #, and other formats. However, in IE10, only the #000000 format and the six-digit color notation with # are allowed. The shorthand notation is not supported and will not take effect.

  3. IE10 is not compatible with new ES6 syntax.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.