• 浮动与细线边框制作广告商标


    代码

    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>Document</title>
        <style>
            * {
                padding: 0;
                margin: 0;
            }
            .reco-box {
                width: 1190px;
                height: auto;
                margin: 0 auto;
                /* border:1px solid #ccc; */
                margin-top: 50px;
                border-width:0px 1px 1px 0px;
                border-style: solid;
                border-color:#ccc;
    
            }
            .item {
                float: left;
                width: calc(12.5% - 1px);
                height: 100%;
                /* 加边框内减 */
                border-width:1px 0px 0px 1px;
                border-style: solid;
                border-color:#ccc;
            }
            .item a {
                display: block;
            }
            .item a img {
                width: 100%;
                height: 100%;
            }
            .clearfix::after {
                content: '';
                display: block;
                clear:both;
            }
        </style>
    </head>
    <body>
        <div class="reco-box clearfix">
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            <div class="item"><a href=""><img src="./image/dog.jpg" alt=""></a></div>
            
         </div>
    </body>
    </html>

    效果图

  • 相关阅读:
    python基础之字符串和字节的转换
    python学习笔记(三)字符串方法、读写文件、json处理以及函数
    python学习笔记(二):list,字典,字符串,元组,文件
    python学习笔记(一):python入门
    接口测试:jmeter学习笔记:数据库操作和压测
    接口测试:postman和jmeter随记
    设计模式之建造者模式
    设计模式之外观模式
    设计模式之模板模式
    设计模式之原型模式
  • 原文地址:https://www.cnblogs.com/shihaiying/p/13503469.html
Copyright © 2020-2023  润新知