zishu's blog

zishu's blog

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

Compatibility handling for IE10

  1. IE10 does not support arrow functions, so use them with caution when writing JavaScript.

  2. In IE10, there are strict syntax requirements for JavaScript. If there is no additional code after a normal parameter, adding a comma will cause 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. It took me a while to realize that I had previously set zoom: 1.1; for a container. It was quite frustrating.

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

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, you can use rgba, #, and other formats for colors. However, in IE10, you can only use the #000000 format, with the # symbol and six-digit color code. You cannot use shorthand notation, otherwise it won't work.

  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.