Analysis of small ball mobile case

}, 15);
three. (Getstyle () function gets the attribute value of the specified element object)
function getStyle (obj, attr) {
if (window.getComputerStyle) {// standard browser
return window.getComputeredStyle (obj, null) [attr];
} else {/ / Early version of IE browser, ie6 ~ 8
return obj.currentStyle [attr];
}
}
}

Published 38 original articles · praised 0 · visits 897

Guess you like

Origin blog.csdn.net/niudehao1/article/details/102535854