Blogger Information
Blog 35
fans 0
comment 0
visits 26691
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
3. 浮动的实现原理与清除的技巧
锋芒天下的博客
Original
581 people have browsed it

<!DOCTYPE html>
<html lang="en">
<head>
   <meta charset="UTF-8">
   <title>Title</title>
   <style>
       *{
           margin: 0;
           padding: 0;
       }
       #box1{
           width: 200px;
           height: 200px;
           background: #000;
           float: left;
       }
       #box2{
           width: 300px;
           height: 300px;
           background: yellow;
           float: left;
       }
       #box3{
           width: 400px;
           height: 400px;
           background: green;
           float: right;
       }

       #box4{
           width: 100%;
           height: 200px;
           background: pink;
           clear: both;
       }
   </style>

</head>
<body>


<div id="box1"></div>
<div id="box2"></div>
<div id="box3"></div>
<div id="box4"></div>


</body>
</html>

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments