• h5实现照片墙效果


    <style>
    *{
    margin: 0;
    padding: 0;
    }
    body{
    background: url(images/bg.jpg);
    }
    #div1{
    100%;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    }
    #div1 div{
    position: absolute;
    -webkit-transition:1.5s all ease-in-out;
    -moz-transition:1.5s all ease-in-out;
    -ms-transition:1.5s all ease-in-out;
    -o-transition:1.5s all ease-in-out;
    border: 6px solid #FFF;
    box-shadow: 2px 2px 2px rgba(0,0,0,0.7);
    left:-300px;
    top:-300px;
    cursor: pointer;
    }
    #div1 div span{
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    100%;
    height: 100%;
    -webkit-transition:1.5s opacity ease-in-out;
    -moz-transition:1.5s opacity ease-in-out;
    -ms-transition:1.5s opacity ease-in-out;
    -o-transition:1.5s opacity ease-in-out;
    }
    #div1 .active{
    border:1px solid #FFF;
    box-shadow: 0 0 2px #000;
    }
    #prev,#next{
    position: absolute;
    60px;
    height: 60px;
    top: 50%;
    margin-top: -30px;
    border: 1px solid #999;
    box-shadow: 0 0 1px rgba(0,0,0,0.7);
    z-index: 2;
    -webkit-transition:0.7s all ease;opacity: 0.6;
    -moz-transition:0.7s all ease;opacity: 0.6;
    -ms-transition:0.7s all ease;opacity: 0.6;
    -o-transition:0.7s all ease;opacity: 0.6;
    }
    #prev{
    left: -20px;
    background: url(images/prev.png) center no-repeat #FFF;
    border-radius: 0 8px 8px 0;
    display: none;
    }
    #prev:hover{
    left: 0px;
    opacity: 1;
    }
    #next{
    right: -20px;
    background: url(images/next.png) center no-repeat #FFF;
    border-radius: 8px 0 0 8px;
    display: none;
    }
    #next:hover{
    right: 0px;
    opacity: 1;
    }
    .back{
    position: absolute;
    right: 20px;
    top:10px;
    color: #000;
    text-shadow:1px 1px 3px #999999;
    text-decoration: none;
    z-index: 10000
    }
    </style>

    <body>
    <a href="http://http://www.cnblogs.com/work-web/" target="_blank" class="back"></a>
    <a href="javascript:void(0)" id="prev"></a>
    <a href="javascript:void(0)" id="next"></a>
    <div id="div1"></div>
    </body>

  • 相关阅读:
    dedecms 标签的基本用法
    修改config.php配置
    截取字符
    preg_replace 方法
    php过滤HTML标签、属性等正则表达式汇总
    各种正则验证
    解决问题 “You don't have permission to access /index.html on this server.”
    zend frameword 基本语法
    创建zend framework 项目要注意的
    PHP中级篇 Apache配置httpd-vhosts虚拟主机总结及注意事项[OK]
  • 原文地址:https://www.cnblogs.com/work-web/p/6130072.html
Copyright © 2020-2023  润新知