秋季,黑彤彤的平棼扒开绿叶往中瞧;小黑灯笼似的枣子挂谦了枝头;像紫玛瑙的葡萄一串串天挂正在葡萄架下,真诱人呀!
我们先来看下具体的演示效果图
以下就是完整的HTML页面代码,大家可以测试下。
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
.big_box{
width: 500px;
height: 500px;
border: 1px solid black;
}
.big_box input{
margin-left: 60px;
}
</style>
<script>
function Change_red(){
var Red=document.getElementById("change_style");
Red.style.backgroundColor="red";
}
function Change_blue(){
var Blue=document.getElementById("change_style");
Blue.style.backgroundColor="blue";
}
function Change_green(){
var Green=document.getElementById("change_style");
Green.style.backgroundColor="green";
}
</script>
</head>
<body>
<div class="big_box" id="change_style">
<input type="button" value="变为红色" onclick="Change_red()">
<input type="button" value="变为蓝色" onclick="Change_blue()">
<input type="button" value="变为绿色" onclick="Change_green()">
</div>
</body>
</html>
本文JS改变页面颜色源码分享到此结束。除非能在关系中自由表达,否则关系很难直接愉悦你。这意味着,在关系中你就是在做你自我,你不是在做一个好人或假人,爱与恨怒与乐丑与美,你都能够让它较自由地流动。若严重做不到这一点,关系就会让你很累,你必须要找到大块独处时间,这时才不必研究任何人,而得到休息。小编再次感谢大家对我们的支持!