<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>自适应宽度</title>
<style>
.main,.sitebar { height: 300px; font: bolder 20px/300px '微软雅黑'; color: #fff; text-align: center;}
.main { width: 100%; float: left;}
.main .content { margin-left: 200px; background-color: red;}
.sitebar { width: 200px; float: left; margin-left: -100%; background-color: green;}
</style>
</head>
<body>
<div class="main">
<div class="content">右侧主体自适应区块</div>
</div>
<div class="sitebar">左侧定宽200px区块</div>
</body>
</html>
右边的盒子自适应,就把放右边的盒子放到最上面,并在外面套上一个盒子!左侧固定,放到外面盒子的下面!