有一个网页代码,高手给我看看.有加分哦

来源:百度知道 编辑:UC知道 时间:2024/06/02 20:59:02
我整了个网页.先做了几个框.可把浏览器缩小后就变形了.应该怎么改.
都说要用DIV+CSS排版布局.请问我的这些用法是否正确(我要的也就是我整的网页在浏览器最大化后的效果),如果不是,应该怎样用
代码如下,难为您了!

<html>
<head>
<title>css</title><style>
body{margin-top:0;}
.STYLE1 {font-family: 幼圆 ;color:#FF9933 }
.STYLE2 {
font-family: Arial, Helvetica, sans-serif;
color: white;
font-size: x-small;
font-weight: bold;
}
.STYLE3 {font-family: "幼圆";color: white;}
</style>
</head>
<body>
<div class="STYLE1" style="float:left;margin-left:35px;border:2px solid silver;width:200px;height:120px; text-align:center;">
<img src="tit_bg1.gif" width="200" height="27" border="0">
<h2>hohoho </h2>
<div align="right">www.xxxx.com</div>
</div&

在外面嵌个div包住所有div那就没事了
------------------
<html>
<head>
<title>css</title><style>
body{margin-top:0;}
.STYLE1 {font-family: 幼圆 ;color:#FF9933 }
.STYLE2 {
font-family: Arial, Helvetica, sans-serif;
color: white;
font-size: x-small;
font-weight: bold;
}
.STYLE3 {font-family: "幼圆";color: white;}
</style>
</head>
<body>
<div style="width:950px">

<div class="STYLE1" style="float:left;margin-left:35px;border:2px solid silver;width:200px;height:120px; text-align:center;">
<img src="tit_bg1.gif" width="200" height="27" border="0">
<h2>hohoho </h2>
<div align="right">www.xxxx.com</div>
</div>
<div