function getStyle(obj, name){if(obj.currentStyle){return obj.currentStyle[name];//兼容ie版本}else{return getComputedStyle(obj, false)[name];//兼容FF和谷歌版本}}spa