}, 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];
}
}
}
Analysis of small ball mobile case
Guess you like
Origin blog.csdn.net/niudehao1/article/details/102535854
Recommended
Ranking