function getStyle(ele, prop) {
if(ele.currentStyle) { //IE
return ele.currentStyle[prop];
} else { //标准
return getComputedStyle(ele)[prop];
}
}