麻烦老师检查

麻烦老师检查


<!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

登陆购买课程后可参与讨论,去登陆

1回答
提问者 bao_ 2020-01-27 21:49:49

已经解决啦,非常感谢!是我太疏忽了,检查了好几遍没检查出来,重写了一遍!.

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
请稍等 ...
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师