标签:current log col ted turn ret nts etc 获取
function getStyle(ele, attr) { return ele.currentStyle ? ele.currentStyle[attr] : window.getComputedStyle(ele, null)[attr]; }
兼容获取元素当前样式 currentStyle || getComputedStyle
标签:current log col ted turn ret nts etc 获取
原文地址:http://www.cnblogs.com/hello321/p/7819273.html