<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<script>
function BS(str){
var A=document.getElementById("w");
A.style.backgroundColor=str;
}
</script>
</head>
<body id="w">
<button onclick="BS('blue')" >蓝色</button>
<button onclick="BS('yellow')" >黄色</button>
<button onclick="BS('red')" >红色</button>
<button onclick="BS('green')" >绿色</button>
</body>
</html>
用按钮换肤
最新推荐文章于 2018-12-11 13:50:36 发布