会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 133306个问题
WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5新增元素 34楼

<style>
        .container{
            width: 1400px;
            height: 1400px;
            margin: 0 auto;
            background-color: brown;
        }
        .header{
            height:80px;
            background-color: antiquewhite;
        }
        .nav{
            height:80px;
            margin-top: 10px;
            background-color: antiquewhite;
        }
        .main{
            height:80px;
            margin-top: 10px;
        }
        .left{
            float: left;
            width: 900px;
            height: 600px;
            background-color: bisque;
        }
        .right{
            float: right;
            width: 480px;
            height: 600px;
            background-color: antiquewhite;
        }
        .footer{
            height: 80px;
            margin-top: 10px;
            background-color: bisque;
        }
        
 </style>
 <body>
   
    <div class="container">
        <div class="header">网站头部</div>
        <div class="nav">网站导航</div>
        <div class="main">
            <div class="left">主要内容</div>
            <div class="right">侧边栏</div>
        </div>
        <div class="footer">网站底部</div>

    </div>
</body>
跟着老师敲的代码,怎么运行出来最后一个footer容器怎么是这样显示的

image.png

WEB前端全系列/第一阶段:HTML5+CSS3模块/HTML5新增元素 35楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/浮动与定位 36楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/表单 39楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/商城官网项目 40楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/表单 44楼
WEB前端全系列/第一阶段:HTML5+CSS3模块/前端入门与基础知识 45楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

©2014-2025百战汇智(北京)科技有限公司 All Rights Reserved 北京亦庄经济开发区科创十四街 赛蒂国际工业园
网站维护:百战汇智(北京)科技有限公司
京公网安备 11011402011233号    京ICP备18060230号-3    营业执照    经营许可证:京B2-20212637