博客列表 >九月四号作业

九月四号作业

醒了的博客
醒了的博客原创
2019年09月08日 23:18:05564浏览

清除浮动实例(图片)

78.png

3.png

三列布局

    <div class="head">
        <img class="img_ter" src="static/images/5.jpg" alt="图片">
        <img class="img_left" src="static/images/1.jpg" alt="">
        <img class="img_right" src="static/images/2.jpg" alt="">
    </div>
    <div class="sanlie">
        <div class="demo1"></div>
        <div class="demo2"></div>
        <div class="demo3"></div>
    </div>
<style>
            .head{
        width: 90%;
        margin: auto;
        position: relative;
        }
        .head ***g_ter{
            width: 100%;
            max-height: 500px;
        }
        .head ***g_left{
            width: 60px;
            height: 100px;
            position: absolute;
            top: 150px;
            left: 100px;
        }
        .head ***g_right{
            width: 60px;
            height: 100px;
            position: absolute;
            top: 150px;
            right: 100px;
        }
        .sanlie{
            width: 90%;
            margin: auto;
            position: relative;
        }
        .sanlie .demo1{
            width: 30%;
            height: 200px;
            position: absolute;
            left: 2%;
            background-color: brown;
        }
        .sanlie .demo2{
            width: 30%;
            height: 300px;
            position: absolute;
            left: 35%;
            background-color: blue;
        }
        .sanlie .demo3{
            width: 30%;
            height: 200px;
            position: absolute;
            right: 2%;
            background-color: aqua;
        }
    </style>

1440.png

 

声明:本文内容转载自脚本之家,由网友自发贡献,版权归原作者所有,如您发现涉嫌抄袭侵权,请联系admin@php.cn 核实处理。
全部评论
文明上网理性发言,请遵守新闻评论服务协议