zoukankan      html  css  js  c++  java
  • 图片卷边

    鼠标移上去   卷角   

    思路  1 鼠标一上去  左上角出现一个 矩形 矩形先定好位置 

    2 处理一下看上去更像  加动画过渡

    3 处理一下样式 把小矩形 背景色渐变  圆角  完美

    <!DOCTYPE html>
    <html>

        <head>
            <meta charset="UTF-8">
            <title>图片卷边</title>
            <style>
                .img_box {
                    height: 200px;
                     200px;
                    margin: auto;
                    position: relative;
                    border-radius: 15px;
                    margin-top: 200px;
                }
                
                img {
                    height: 200px;
                     200px;
                    border-radius: 15px;
                    vertical-align: baseline;
                }
                
                .img_box:before {
                    content: "";
                     0px;
                    height: 0px;
                    background: #fff;
                    position: absolute;
                    top: 0;
                    left: 0;
                    border-radius: 0 0 5px 0;
                    background: linear-gradient(135deg, white 45%, #aaaaaa 50%, #cccccc 56%, white 80%);
                    box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);
                    transition: all 0.5s;
                }
                
                .img_box:hover:before {
                    content: "";
                     30px;
                    height: 30px;
                }
            </style>
        </head>

        <body>
            <div class="img_box">
                <img src="img/headimg.png" />
            </div>
        </body>

    </html>

  • 相关阅读:
    P4281 [AHOI2008]紧急集合 / 聚会
    P2622 关灯问题II
    CF1092F Tree with Maximum Cost
    10.28记
    威尔逊定理及证明
    CF895C Square Subsets
    洛谷 P5556 圣剑护符
    Multi-nim结论及证明
    AT2667 [AGC017D] Game on Tree
    洛谷 P4643 [国家集训队]阿狸和桃子的游戏
  • 原文地址:https://www.cnblogs.com/peijunma/p/6118284.html
Copyright © 2011-2022 走看看