1.html 代码怎么写
<P align=center><B>;市场价<FONT id=aa face=宋体 color=#00ff00
size=4>2999</FONT>;元</B><BR><B>;特价:<FONT id=bb face=宋体 color=#00ff00
size=4>2350</FONT>;元</B><BR><B>;立省<FONT id=cc face=宋体 color=#00ff00
size=4>???</FONT>;元</B>
<SCRIPT>var myrandom1=aa.innerHTML-bb.innerHTML
cc.innerHTML=myrandom1</SCRIPT>
</P>
看这样可以不
2.求写 div+css 网页代码
<HTML>
<HEAD>
<style type="text/css">
body{
text-align:center;
font-size:30px;
color:#ffffff;
}
.c{
width:800px;
height:1000px;
background-color:#c0c0c0;
padding:10px;
margin-top:0px;
}
.cont{
background-color:#ffffff;
width:800px;
height:1000px;
}
.top{
background-color:#90C;
width:800px;
height:200px;
}
.middle{
margin-top:6px;
width:800px;
height:650px;
}
.middleleft{
background-color:#90C;
float:left;
width:250px;
height:650px;
}
.middleright{
margin-left:5px;
background-color:#90C;
width:545px;
height:650px;
}
.bottom{
margin-top:5px;
background-color:#90C;
width:800px;
height:150px;}
</style>
</HEAD>
<BODY>
<div class="c">
<div class="cont">
<div class="top">;高:固定 宽:自动 位置:居上</div>
<div class="middle">
<div class="middleleft">;高:固定 <br>;宽:自动</div>
<div class="middleright">;高:固定 <br>;宽:自动</div>
</div>
<div class="bottom">;高:固定 宽:自动 位置:居下</div>
</div>
</div>
</BODY>
</HTML>
打开记事本,复制代码,另存为,在文件名后加 .html 打开即可。
3.这样的DIV怎么写代码
。4.用CSS+DIV写代码
测试 测试 测试 测试 测试 测试 测试 测试 测试 测试 测试 测试