<br>.dv { 너비:800px; 높이:600px; 텍스트 정렬:중심;}<br>.td2 { 너비:80px; 높이:30px; 테두리:단색 #CCC 1px; 배경:#F00; 색상:#FFF; 텍스트 정렬:가운데; 위치:상대적;}<br>.dv1 { 너비:150px; 높이:150px; 테두리:단색 #000 3px;}<br>.dv2 { 너비:300px; 높이:250px; 테두리:단색 #CCC 20px; 위치:절대; 상단:100px; 왼쪽:460px; 표시:없음; 배경:#FFF;}<br>.td3 { 너비:30px; 높이:30px; 테두리:단색 #999 1px; 텍스트 정렬:가운데; 색상:#FFF;}<br>.td4 { 너비:30px; 높이:30px; 테두리:단색 #999 1px; 텍스트 정렬:가운데; 색상:#666; 배경:#CCC;}<br>.td5 { 너비:60px; 높이:30px; 테두리:단색 #999 1px; 텍스트 정렬:가운데; 색상:#FFF; 배경:#009;}<br>.tb { 패딩-왼쪽:70px; padding-top:20px;}<br><br>window.onload=function(){<br> var td1=document.getElementById("td");<br> var dv0=document.getElementById("dva ");<br> var dv1=document.getElementById("dvv");<br> var dv2=document.getElementById("dve");<br> var color1=document.getElementById("c1");<br> var color2=document.getElementById( "c2");<br> var color3=document.getElementById("c3");<br> var width1=document.getElementById("w1");<br> var width2=document.getElementById("w2");<br> var width3=document. getElementById("w3");<br> var height1=document.getElementById("h1");<br> var height2=document.getElementById("h2");<br> var height3=document.getElementById("h3");<br> var re= document.getElementById("recover");<br> var su=document.getElementById("sure");<br><br> td1.onclick=function(){<br> dv2.style.display='block';<br> dv0.style.Background= '#999999';<br> }<br><br> color1.onclick=function(){<br> dv1.style.Background='#F00';<br> }<br> color1.onmouseover=function(){<br> color1.style.Background ='#F00 ';<br> }<br> color1.onmouseout=function(){<br> color1.style.Background='#99CC66';<br> }<br><br> color2.onclick=function(){<br> dv1.style.Background='#FF0' ;<br> }<br> color2.onmouseover=function(){<br> color2.style.Background='#FF0';<br> }<br> color2.onmouseout=function(){<br> color2.style.Background='#CCCC00';<br> } <br><br> color3 .onclick=function(){<br> dv1.style.Background='#00F';<br> }<br> color3.onmouseover=function(){<br> color3.style.Background='#00F';<br> }<br> color3.onmouseout =함수 (){<br> color3.style.ground='#3399CC';<br> }<br><br> width1.onclick=function(){<br> dv1.style.width='200px';<br> }<br> width1.onmouseover=function (){<br> width1.style.Background='#F90';<br> }<br> width1.onmouseout=function(){<br> width1.style.Background='#CCC';<br> }<br><br> width2.onclick=function(){<br> dv1. 스타일 .width='300px';<br> }<br> width2.onmouseover=function(){<br> width2.style.Background='#F90';<br> }<br> width2.onmouseout=function(){<br> width2.style.Background=' # CCC';<br> }<br><br> width3.onclick=function(){<br> dv1.style.width='400px';<br> }<br> width3.onmouseover=function(){<br> width3.style.background='#F90';<br> }<br> width3.onmouseout=function(){<br> width3.style.background='#CCC';<br> }<br><br> height1.onclick=function(){<br> dv1.style.height='200px';<br> }<br> height1.onmouseover=function(){<br> height1.style.background='#F90';<br> }<br> height1.onmouseout=function(){<br> height1.style.background='#CCC';<br> }<br><br> height2.onclick=function(){<br> dv1.style.height='300px';<br> }<br> height2.onmouseover=function(){<br> height2.style.background='#F90';<br> }<br> height2.onmouseout=function(){<br> height2.style.background='#CCC';<br> }<br><br> height3.onclick=function(){<br> dv1.style.height='400px';<br> }<br> height3.onmouseover=function(){<br> height3.style.background='#F90';<br> }<br> height3.onmouseout=function(){<br> height3.style.background='#CCC';<br> }<br><br> re.onclick=function(){<br> dv1.style.width='150px';<br> dv1.style.height='150px';<br> dv1.style.background='none';<br> }<br><br> su.onclick=function(){<br> dv2.style.display='none';<br> dv0.style.background='none';<br> }<br> }<br> 请为下面的DIV设置样式: 点击设置 ;td id="c1" class="td3" bgcolor="#99CC66">红 黄< ;/td> 蓝 请选择宽(px): 200 300 td> 400 请选择高(px): 200 300 400 < td id="recover" class="td5">恢复 确定 < /table>