您好,欢迎来到尔游网。
搜索
您的当前位置:首页getStyle获取元素所绑定的css属性_html/css

getStyle获取元素所绑定的css属性_html/css

来源:尔游网


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];}

Copyright © 2019- axer.cn 版权所有 湘ICP备2023022495号-12

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务