function addCss(path) {
    var css = document.createElement("link");
    css.setAttribute("type", "text/css");
    css.setAttribute("rel", "stylesheet");
    css.href = path;
    document.body.appendChild(css);
}

相关文章: