利用所学浮动知识,完成自己的小案例

原创2019-07-18 13:36:3614
摘要:<!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <title>message boar
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>message board</title>
    <link rel="stylesheet" href="work2.css">
    <style type="text/css">
        .box1{
            width:100px;
            height:100px;
            float:left;
            background-color:lightblue;
        }
        .box2{
            width:100px;
            height:100px;
            float:left;
            background-color:lightsalmon;
        }
        .clear{
            clear:both;
        }
        .box4{
            width:100px;
            height:100px;
            float:left;
            background-color:lightcoral;
        }
        .box5{
            width:100px;
            height:100px;
            float:left;
            background-color:lightgoldenrodyellow;
        }
    </style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="clear"></div>
<div class="box4"></div>
<div class="box5"></div>
</body>
</html>

一个简单利用浮动布局的正方形

1.png

批改老师:欧阳克批改时间:2019-07-19 13:11:06
老师总结:完成的不错。浮动在移动端用到的比较多。继续加油。

发布手记

热门词条

第九期线上培训班