摘要:html>
控制改变div样式.conent{width: 800px;margin:0 auto;}
.an{thtml>
控制改变div样式.conent{width: 800px;margin:0 auto;}
.an{text-align: center;margin-top: 20px;}
#box{height: 200px;width: 200px;background: #e3e3e3;margin:0 auto;}
var box
window.οnlοad=function(){
box=document.getElementById('box')
}
function box_h () {
box.style.height="400px"
}
function box_w(){
box.style.width="400px"
}
function box_color(){
box.style.background="red"
}
function box_cz(){
box.style.height="200px"
box.style.width="200px"
box.style.background="#e3e3e3"
}
function box_none(){
box.style.display="none"
}
function box_block(){
box.style.display="block"
}
控制改变div样式