麻烦老师检查
来源:3-3 编程练习
bao_
2020-01-27 21:18:27
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>3-3编程练习</title>
<style type="text/css">
* {
margin: 0px;
padding: 0px;
}
body {
min-width: 700px;
}
.container {
overflow: hidden;
zoom: 1;
}
.header,
.footer {
width: 100%;
height: 40px;
background: black;
line-height: 40px;
text-align: center;
float: float;
}
.content {
width: 100%;
padding:0 220px 0 200px;
overflow: hidden;
zoom: 1;
}
.left,
.middle,
.right {
position: relative;
float: left;
min-height: 300px;
}
.middle {
width: 100%;
background: #cdcdcd;
}
.left {
width: 200px;
background: blue;
margin-left: -100%;
left: -200px;
}
.right {
width: 220px;
background: red;
/* margin-left: -220px;
right:-220px; */
}
</style>
</head>
<body>
<div class="container">
<div class="header">这是页面头部</div>
<div class="content">
<div class="middle">这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间这是页面的中间</div>
<div class="left">这是页面的左侧</div>
<div class="right">这是页面的右侧</div>
</div>
<div class="footer">这是页面尾部</div>
</div>
</body>
</html>
我设置的中间内容的内边距,右内边距为什么会被挤下去,怎么改
1回答
bao_
提问者
2020-01-27
已经解决啦,非常感谢!是我太疏忽了,检查了好几遍没检查出来,重写了一遍!.