简单的换肤
蓝 红 绿
<!DOCTYPE html><html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
function changeColor(str){
var body = document.getElementById("b");
body.style.backgroundColor = str;
} </script>
</head>
<body id="b" >
<button onclick="changeColor('blue')">蓝色</button>
<button onclick="changeColor('red')">红色</button>
<button onclick="changeColor('green')">绿色</button>
</body></html>
Copyright © 2019- gamedaodao.net 版权所有 湘ICP备2024080961号-6
违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com
本站由北京市万商天勤律师事务所王兴未律师提供法律服务