<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
body{
margin: 0px;
padding: 0px;
}
.wrap{
width: 100%;
float: left;
background-color: #fc2;
}
.content{
margin-left: 200px;
height: 500px;
background-color: #ff1;
}
.right{
width: 200px;
height: 500px;
float: left;
background-color: #f44;
margin-left:-100%;
}
</style>
</head>
<body>
<div class="wrap">
<div class="content">content内容</div>
</div>
<div class="right">right</div>
</body>
</html>
<html>
<head>
<title></title>
<meta charset="utf-8">
<style type="text/css">
body{
margin: 0px;
padding: 0px;
}
.wrap{
width: 100%;
float: left;
background-color: #fc2;
}
.content{
margin-left: 200px;
height: 500px;
background-color: #ff1;
}
.right{
width: 200px;
height: 500px;
float: left;
background-color: #f44;
margin-left:-100%;
}
</style>
</head>
<body>
<div class="wrap">
<div class="content">content内容</div>
</div>
<div class="right">right</div>
</body>
</html>