博主信息
博文 6
粉丝 0
评论 0
访问量 4534
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
九月四号作业
醒了的博客
原创
679人浏览过

清除浮动实例(图片)

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举报处理!
全部评论 文明上网理性发言,请遵守新闻评论服务协议
0条评论
作者最新博文
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号

  • 登录PHP中文网,和优秀的人一起学习!
    全站2000+教程免费学