摘要: //获取元素的样式值。function getStyle(elem,name){if(elem.style[name]){return elem.style[name];}else if(elem.currentStyle){return elem.currentStyle[name];}else if(document.defaultView&&document.defaultView.getComputedStyle){name=name.replace(/([A-Z])/g,"-$1");name=name.toLowerCase();var s=do 阅读全文
posted @ 2013-12-11 15:03 小小的我$ 阅读(348) 评论(0) 推荐(1) 编辑