不刷新页面更改CSS样式,IE6、7、FireFox
function addCss(path) {
var css = document.createElement("link");
css.setAttribute("type", "text/css");
css.setAttribute("rel", "stylesheet");
css.href = path;
document.body.appendChild(css);
}
function addCss(path) {
var css = document.createElement("link");
css.setAttribute("type", "text/css");
css.setAttribute("rel", "stylesheet");
css.href = path;
document.body.appendChild(css);
}