<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>改变网页皮肤</title>
</head>
<body>
<button value="设为红色" onclick="color('red')">设为红色</button>
<button value="设为黄色" onclick="color('yellow')">设为黄色</button>
<button value="设为蓝色" onclick="color('blue')">设为蓝色</button>
<button value="设为绿色" onclick="color('green')">设为绿色</button>
<script type="text/javascript">
function color(e){
document.body.style.backgroundColor = e
}
</script>
</body>
</html>
Jscript 03 改变网页皮肤颜色
猜你喜欢
转载自blog.csdn.net/Beyond_Nothing/article/details/105634029
今日推荐
周排行