IE8兼容性指南

虽然IE8这种远古的浏览器已经很少人用了,但现实中,难免会有一定要兼容IE8的需求。这种时候,有份指南,也是极好的。

此处应有浏览器市场份额表

样式表

不支持的CSS属性和选择器

IE8不支持所有的CSS3属性/选择器?在使用如下常用属性/选择器时,应当注意:

  • border-raidus (PIE)
  • border-shadow (PIE)
  • border-image (PIE)
  • 多背景 (PIE)
  • linear-gradient (PIE)
  • background-size (background-size-polyfill)
  • background-clip
  • background-origin
  • :last-child

解决方案:

脚本

不支持的一些对象方法

  • Object.assign
  • Object.defineProperty
  • Object.create
  • Object.keys
  • JSON.parse
  • JSON.stringify

不支持的一些列表方法

  • Array.indexOf
  • Array.map
  • Array.forEach
  • Array.filter

不支持的一些函数方法

  • Function.bind

解决方案

jams-talk