zoukankan      html  css  js  c++  java
  • 浮动与细线边框制作广告商标

    代码

    <!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>

    效果图

  • 相关阅读:
    谈谈我的经历--【产品设计中遇到的坑0】系列文章的序
    2017.02.04,读书,2017第二本《把时间当作朋友》读书笔记
    读书《重生,七年就是一辈子》
    好剧推荐:This is us
    直播预告:产品设计中不得不知的事情
    高德地图事件与插件绑定
    高德地图基础
    es6 Iterator和for...of循环
    class与class的继承
    JS保留两位小数的几种方法
  • 原文地址:https://www.cnblogs.com/shihaiying/p/13503469.html
Copyright © 2011-2022 走看看