function getStyle(el,cssProp){ if(el.currentStyle){ // ie return el.currentStyle[sccProp]; } else if(window.getComputedStyle){ return window.getComputedStyle(el)[sccProp]; } // return el.style[cssProp];}
查看更多关于getStyle获取元素所绑定的css属性_html/css_WEB-ITnose的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did113749