会员可以在此提问,百战程序员老师有问必答
对大家有帮助的问答会被标记为“推荐”
看完课程过来浏览一下别人提的问题,会帮你学得更全面
截止目前,同学们一共提了 132474个问题
WEB前端全系列/第一阶段:HTML5+CSS3模块/表单 15361楼
Python 全系列/第十一阶段:重量级Web框架-Django/Django初级 15362楼
Python 全系列/第一阶段:Python入门/面向对象 15363楼
Python 全系列/第十九阶段:数据分析-数据管理/Pandas基本使用 15365楼

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
    .phone {
        width: 1300px;
        height: 680px;
        margin: 0 auto;
        background-color: bisque;
    }

    .left {
        width: 234px;
        height: 680px;
        background-color: rgb(236, 41, 7);
    }

    .right {
        float: right;
        width: 1050;
        height: 680px;
        background-color: aliceblue;
    }

    .box {
        float: left;
        width: 250px;
        height: 300px;
        background-color: black;
        margin-top: 10px;
        margin-left: 10px;
    }
</style>

<body>
    <div class="phone">
        <div class="left"></div>
        <div class="right">
            <div class="box"></div>
            <div class="box"></div>
            <div class="box"></div>
            <div class="box"></div>
            <div class="box"></div>
            <div class="box"></div>
            <div class="box"></div>
            <div class="box"></div>
        </div>
    </div>
</body>

</html>

老師,我的網頁加載后right裏面内容都向下排列了

WEB前端全系列/第一阶段:HTML5+CSS3模块/表单 15366楼
Python 全系列/第七阶段:网页编程基础/JavaScript 15367楼
JAVA 全系列/第三阶段:数据库编程/MySQL数据库的使用 15370楼
Python 全系列/第五阶段:数据库编程/mysql的使用 15371楼
JAVA 全系列/第二阶段:JAVA 基础深化和提高/常用类 15373楼

课程分类

百战程序员微信公众号

百战程序员微信小程序

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