问答详情
源自:2-6 编程练习

滴滴滴滴滴

<style type="text/css">

*{

margin: 0;

padding: 0;


}

.fen{

width: 960px;

margin: 0 auto;

background: #CFF;

overflow:visible;

}

.fen1{

width: 740px;

height: 300px;

background: #C9F;

float: left;

}


.fen2{

width: 210px;

height: 300px;

background:#FCF;

float: right;

 }

</style>

</head>

<body>

<div class="fen">

<div class="fen1"></div>

<div class="fen2"></div>


</div>

</body>

</html>


提问者:慕移动9358087 2021-06-02 22:20

个回答

  • 慕田峪4402732
    2021-07-29 12:49:44

    overflow:visible;这个是啥意思呀,没太明白

  • 慕沐4277940
    2021-06-17 10:05:34

    <style type="text/css">


    /*在此定义相应的类选择器,并根据要求设置相关CSS属性*/

    *{

    margin: 0;

    padding: 0;

    }

    .mainBox{

    width: 960px;

    height: 300px;

    background-color: #CFF;

    float: left;


    }

    .leftBox{

    width: 740px;

    height: 300px;

    background-color: #C9F;

    float: left;


    }

    .rightBox{

    width: 210px;

    height: 300px;

    background-color: #FCF;

    float: right;

    }




    </style>

    </head>


    <body>



    <!--在此添加相应的div标签-->

    <div class="mainBox">

    <div class="leftBox"></div>

    <div class="rightBox"></div>

    </div>



    </body>