function getCss(ele,attr){ if(window.getComputedStyle){ return window.getComputedStyle(ele,null)[attr]; }else{ return ele.currentStyle[attr]; } }
function getCss(ele,attr){ if(window.getComputedStyle){ return window.getComputedStyle(ele,null)[attr]; }else{ return ele.currentStyle[attr]; } }