IE8兼容问题

getComputedStyle 试用IE10 及以上,以及其他浏览器
currentStyle 使用IE8


element.currentStyle?element.currentStyle[styleName]:window.getComputedStyle(element)[styleName];

转载自:https://blog.csdn.net/lxqnl1314/article/details/76572293

You may also like...