abstract:<!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=关键词>
<meta name=Description content=文档描述信息>
<!--<link rel="stylesheet" type="text/css" href="css.css">
<link rel="icon" type="image/x-icon" href="img/标题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>
-----------------------------------------------------------------------------------------
学而时习之,温故而知新 。圣人就是圣人,每次看视频 每次都有新的认识和收获,当时漏掉的或者忘记的,还有不理解的,现在回过头看看 ,so1z啊
Correcting teacher:查无此人Correction time:2019-04-01 09:37:20
Teacher's summary:完成的不错,下次把js每行代码后面都增加;号。继续加油