Blogger Information
Blog 5
fans 0
comment 1
visits 3031
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
盒模型的基本要素,四种元素对齐方案,定位-2018.8.16
圈圈小竹子的博客
Original
507 people have browsed it

实例

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>风车</title>
    <style>
        .box1 {
            width: 100px;
            height: 100px;
            background-color: lightblue;
            position: relative;
            left: 100px;
        }

        .box2 {
            width: 100px;
            height: 100px;
            background-color: lightpink;
        }

        .box3 {
            width: 100px;
            height: 100px;
            background-color: lightgreen;
            position: relative;
            left: 200px;
            top:-100px;
        }

        .box4 {
            width: 100px;
            height: 100px;
            background-color: lightyellow;
            position: relative;
            left: 100px;
            top: -100px;
        }
    </style>
</head>
<body>
<div class="box1"></div>
<div class="box2"></div>
<div class="box3"></div>
<div class="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