摘要:
Documentvar box
window.οnlοad=function(){
box=document.getElementById('box')
}
function aa(){
box.style.height="400px" //改变高度
}
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-01-05 09:36:14
老师总结:最重要的你没有写: getElementsByTagName()