abstrakt:<!doctype html><html> <head> <meta charset=UTF-8> <meta name=Generator content=baidu.com> <meta name=Author content=作者> <meta name=K
<!doctype html>
<html>
<head>
<meta charset=UTF-8>
<meta name=Generator content=baidu.com>
<meta name=Author content=作者>
<meta name=Keywords content=關(guān)鍵詞>
<meta name=Description content=文檔描述信息>
<!--<link rel="stylesheet" type="text/css" href="css.css">
<link rel="icon" type="image/x-icon" href="img/標(biāo)題logo">
<script type="text/javascript" src=""></script> -->
<style type="text/css">
*{margin:0;padding:0;}
address, cite, dfn, em, var{font-style:normal;}
li{font-style:normal;}
a{text-decoration:none;color:#f40;}
a:hover { text-decoration:underline;}
table{border-collapse:collapse; border-spacing:0;}
ul, ol { list-style:none; }
h1, h2, h3, h4, h5, h6{ font-size:100%; }
fieldset, img { border:0; }
#box{width:100px;height:100px;background:pink;margin:30px 80px;}
</style>
<title>頁面名稱</title>
</head>
<body>
<div id="box"></div>
<input type="button" value="變高" onclick="aa()">
<input type="button" value="變寬" onclick="bb()">
<input type="button" value="變色" onclick="cc()">
<input type="button" value="重置" onclick="dd()">
<input type="button" value="隱藏" onclick="ee()">
<input type="button" value="顯示" onclick="ff()">
<script type="text/javascript">
var box;
window.onload=function(){
box=document.getElementById('box')
}
function aa()
{
box.style.height="400px"
}
function bb()
{
box.style.width="400px"
}
function cc()
{
box.style.background="#ff0000"
}
function dd()
{
box.style.height="100px"
box.style.width="100px"
box.style.background="pink"
}
function ee()
{
box.style.display="none"
}
function ff()
{
box.style.display="block"
}
</script>
</body>
</html>
-----------------------------------------------------------------------------------------
學(xué)而時(shí)習(xí)之,溫故而知新 。圣人就是圣人,每次看視頻 每次都有新的認(rèn)識和收獲,當(dāng)時(shí)漏掉的或者忘記的,還有不理解的,現(xiàn)在回過頭看看 ,so1z啊
Korrigierender Lehrer:查無此人Korrekturzeit:2019-04-01 09:37:20
Zusammenfassung des Lehrers:完成的不錯(cuò),下次把js每行代碼后面都增加;號。繼續(xù)加油