Element.prototype.getStyle=function(prop){
if(window.getComputedStyle){
return window.getComputedStyle(this,null)[prop]
}else{
return this.currentStyle[prop];
}
}
封装兼容性方法getStyle(elem,prop)获取元素的css属性
最新推荐文章于 2019-06-02 09:54:43 发布