<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
* {
margin: 0px;
padding: 0px;
}
body {
text-align: center;
margin: 0px;
}
#center #left {
background-color: #FFFFCC;
float: right;
width: 200px;
height: 300px;
margin-left: -200px;
}
#center #right {
background-color: #C8FFED;
float: right;
height: 300px;
width: 100%;
}
#center {
padding-left: 200px;
}
</style>
</head>
<body>
<div id="center">
<div id="right">右边 </div>
<div id="left">左边 </div>
</div>
</body>
</html>
网页布局---左边固定右边自适应
最新推荐文章于 2024-10-09 18:18:27 发布