2个回答
展开全部
html
<script>
function changecss(){
var css=document.createElement('link');
css.href='c.css';
css.rel="stylesheet";
css.type="text/css";
document.body.appendChild(css);
}
window.onload=function(){
document.getElementById('changecss').onclick=changecss;
}
</script>
<span id="changecss">点</a>
css(c.css)
body{
background:red;
}
<script>
function changecss(){
var css=document.createElement('link');
css.href='c.css';
css.rel="stylesheet";
css.type="text/css";
document.body.appendChild(css);
}
window.onload=function(){
document.getElementById('changecss').onclick=changecss;
}
</script>
<span id="changecss">点</a>
css(c.css)
body{
background:red;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询