• 翘边阴影


    HTML代码:

    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>css3实现曲线阴影和翘边阴影</title>
    <link rel="stylesheet" type="text/css" href="css/style.css"/>
    </head>
    <body>
    <div class="box">
    <ul>
    <li>
    <img src="img/1.jpg"/>
    </li>
    <li>
    <img src="img/2.jpg"/>
    </li>
    <li>
    <img src="img/3.jpg"/>
    </li>
    </ul>

    </div>
    </body>
    </html>

    CSS代码:

    .box{
    980px;
    height: auto;
    clear: both;
    overflow: hidden;
    margin: 20px auto;
    }

    .box li{
    300px;
    height: auto;
    float: left;
    margin: 20px,10px;
    background: #FFFFFF;
    border: 2px solid #efefef;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3),0 0 60px rgba(0,0,0,0.1) inset;
    -webkit-box-shadow: 0 1px 4px rgba(0,0,0,0.3),0 0 60px rgba(0,0,0,0.1) inset;
    -moz-box-shadow: 0 1px 4px rgba(0,0,0,0.3),0 0 60px rgba(0,0,0,0.1) inset;
    -o-box-shadow: 0 1px 4px rgba(0,0,0,0.3),0 0 60px rgba(0,0,0,0.1) inset;
    }

    .box li img{
    display: block;
    290px;
    height: 200px;
    margin: 5px;
    }

    .box li:after{
    content:' ' ;
    position: absolute;
    90%;
    height: 80%;
    left : 20px;
    bottom: 8px;
    background: transparent;
    z-index: -1;
    box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -webkit-box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -moz-box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -o-box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -webkit-transform: skew(-12deg) rotate(-4deg);
    -moz-transform: skew(-12deg) rotate(-4deg);
    -o-transform: skew(-12deg) rotate(-4deg);
    -ms-transform: skew(-12deg) rotate(-4deg);
    }

    .box li:before{
    content:' ' ;
    position: absolute;
    90%;
    height: 80%;
    right : 20px;
    bottom: 8px;
    background: transparent;
    z-index: -1;
    box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -webkit-box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -moz-box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -o-box-shadow:0 8px 20px rgba(0,0,0,0.6) ;
    -webkit-transform: skew(12deg) rotate(4deg);
    -moz-transform: skew(12deg) rotate(4deg);
    -o-transform: skew(12deg) rotate(4deg);
    -ms-transform: skew(12deg) rotate(4deg);
    }

  • 相关阅读:
    Mysql模糊查询like效率,以及更高效的写法(转)
    补全数组缺失某种类型的数据方法
    php 判断两个数组是否相等
    query如何全选或不全选时,不操作已经禁用的checkbox
    css talbe中td溢出隐藏 div溢出隐藏
    MongoDb的安装
    PSR规范
    shell中各种括号的作用()、(())、[]、[[]]、{}
    mysql explain执行计划详解
    PHP "延迟静态绑定" 功能,static
  • 原文地址:https://www.cnblogs.com/150536FBB/p/8626795.html
Copyright © 2020-2023  润新知