获取样式方法

来源:互联网 发布:8888端口干嘛的 编辑:程序博客网 时间:2024/06/06 00:17
function getStyle(obj,sty){return obj.currentStyle?obj.currentStyle[sty]:getComputedStyle(obj)[sty];}
0 0