摘要:html>
JavaScript控制DIV#box{width:html>
JavaScript控制DIV#box{width:100px; height: 100px;background: red; margin: 20px 80px;}
var box
window.οnlοad=function(){
box=document.getElementById('box')
}
function aa(){
box.style.height="500px";
}
function bb(){
box.style.width="400px";
}
function cc(){
box.style.background="pink";
}
function dd(){
box.style.height="100px";
box.style.width="100px";
box.style.background="red";
}
function ee(){
box.style.display="none";
}
function ff(){
box.style.display="block";
}
批改老师:欧阳批改时间:2019-05-20 09:02:08
老师总结:完成的不错。js功能非常强大,要好好练习。继续加油。