摘要: 1 function getStyle(obj, attr){ 2 if(obj.currentStyle){ 3 style = obj.currentStyle[attr]; //兼容IE8以下 4 }else{ 5 style = getComputedStyle(obj,false)[attr]; 6 }; 7 ... 阅读全文
posted @ 2017-01-08 10:08 菜蛋 阅读(397) 评论(0) 推荐(0) 编辑