• 图片卷边


    鼠标移上去   卷角   

    思路  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>

  • 相关阅读:
    快速排序
    ABP Error in roboto.css can't resolve '97uahxiqZRoncBaCEI3aWxJtnKITppOI_IvcXXDNrsc.woff2'
    .NET Core Log
    .NET Core的配置文件
    VirtualBox多网卡模式
    Maven 常见错误
    python压缩文件脚本
    Windows7 64bit 安装python3.3 & cx_Freeze-4.3.2
    Ubuntu Linux环境变量
    Ubuntu12.04 64bit 安装 Dropbox
  • 原文地址:https://www.cnblogs.com/peijunma/p/6118284.html
Copyright © 2020-2023  润新知