function getStyle(ele, prop) {     if(ele.currentStyle) { //IE         return ele.currentStyle[prop];     } else { //标准         return getComputedStyle(ele)[prop];     } }
扫码关注我们
微信号:SRE实战
拒绝背锅 运筹帷幄