美文网首页
简单hover效果-添加投影3D-兼容IE10

简单hover效果-添加投影3D-兼容IE10

作者: gitJason | 来源:发表于2017-09-12 21:27 被阅读0次
    <!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Document</title>
        <style type="text/css">
            *{
                margin: 0;
                padding: 0;
                list-style: none;
            }
            ul li{
                float: left;
                text-align: center;
                background: #fff;
                border-radius: 5px;
                border: 1px solid #eee;
                height: 320px;
                width: 300px;
                margin: 0 45px;
                box-shadow: 1px 1px 1px rgba(0, 0, 0, .03);
                transition: 0.5s;
                -moz-transition: 0.5s; 
                -webkit-transition: 0.5s; 
                -o-transition: 0.5s;    
            }
            ul li:hover{
                -webkit-box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                box-shadow: 0 15px 30px rgba(0,0,0,0.1);
                -webkit-transform: translate3d(0, -2px, 0);
                transform: translate3d(0, -2px, 0);
                transition: 0.5s;
                -moz-transition: 0.5s; 
                -webkit-transition: 0.5s;  
                -o-transition: 0.5s;   
            }
        </style>
    </head>
    <body>
        <ul>
            <li>hvoer效果</li>
            <li>hvoer效果</li>
            <li>hvoer效果</li>
        </ul>
    </body>
    </html>
    

    相关文章

      网友评论

          本文标题:简单hover效果-添加投影3D-兼容IE10

          本文链接:https://www.haomeiwen.com/subject/tvshsxtx.html