• 幽灵按钮


    
    
    <!DOCTYPE html>
        <html lang="en">
        <head>
        
            <meta name="viewport" charset="UTF-8" content="width=device-width, initial-scale=1.0">
            <title>幽灵按钮</title>
        
        
            <link rel="stylesheet" type="text/css" href="styleq.css"/>
        </head>
        <body>
        
        
        <div class="content">
        
            <div class="box box-mission">
                <span class="icon"></span>
                <a href="#"class="button">
                    <span class="line line-top"></span>
                    <span class="line line-right"></span>
                    <span class="line line-bottom"></span>
                    <span class="line line-left"></span>
                    资金安全
                </a>
            </div>
            <div class="box box-play">
                <span class="icon"></span>
                <a href="#"class="button">
                    <span class="line line-top"></span>
                    <span class="line line-right"></span>
                    <span class="line line-bottom"></span>
                    <span class="line line-left"></span>
                    闪电交易
                </a>
            </div>
            <div class="box box-touch">
                <span class="icon"></span>
                <a href="#"class="button">
                    <span class="line line-top"></span>
                    <span class="line line-right"></span>
                    <span class="line line-bottom"></span>
                    <span class="line line-left"></span>
                    灵活融资
                </a>
            </div><div class="box box-name">
            <span class="icon"></span>
            <a href="#"class="button">
                <span class="line line-top"></span>
                <span class="line line-right"></span>
                <span class="line line-bottom"></span>
                <span class="line line-left"></span>
                贴心管家<br>
        
            </a>
        </div>
        
        
        </div>
        </body>
        </html>
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    *{
        margin: 0;
        padding: 0;
    }
    
    body{
    
        background: mediumvioletred;
    
    }
    .content{
    
         1000px;
        height:800px;
    
        margin: 80px auto;
    }
    @media screen and (min-980px){
        .content .box{
             160px;
            height: 200px;
            margin:0px 40px;
            float:left ;
        }
    }
    @media screen and (min-600px){
        .content .box{
             160px;
            height: 200px;
    
        }
    }
    .box-mission .icon{
        display:block;
        115px;
        height:111px;
        background: url(./images/a.png) no-repeat;
        margin: 0px auto;
        transition:all 0.2s;
        -webkit-transition:all 0.2s;
        -o-transition:all 0.2s;
        -moz-transition:all 0.2s;
    }
    
    .box-play .icon{
        display:block;
        115px;
        height:111px;
        background: url(./images/b.png) no-repeat;
        margin: 0px auto;
        transition:all 0.2s;
        -webkit-transition:all 0.2s;
        -o-transition:all 0.2s;
        -moz-transition:all 0.2s;
    }
    .box-touch .icon{
         display:block;
         115px;
         height:111px;
         background: url(./images/c.png) no-repeat;
         margin: 0px auto;
         transition:all 0.2s;
         -webkit-transition:all 0.2s;
         -o-transition:all 0.2s;
         -moz-transition:all 0.2s;
     }
    
    .box-name .icon{
        display:block;
        115px;
        height:111px;
        background: url(./images/d.png) no-repeat;
        margin: 0px auto;
        transition:all 0.5s;
        -webkit-transition:all 0.2s;
        -o-transition:all 0.2s;
        -moz-transition:all 0.2s;
    }
    .box-mission .icon:hover{
    
        transform:scale(1.2) rotate(360deg);
        -webkit-transform:scale(1.2) rotate(360deg);//谷歌浏览器
        -o-transform:scale(1.2) rotate(360deg); //苹果浏览器
        -moz-transform:scale(1.2) rotate(360deg);//火狐浏览器
    }
    .box-play .icon:hover{
    
        transform:scale(1.2) rotate(360deg);
        -webkit-transform:scale(1.2) rotate(360deg);//谷歌浏览器
        -o-transform:scale(1.2) rotate(360deg); //苹果浏览器
        -moz-transform:scale(1.2) rotate(360deg);//火狐浏览器
    }
    
    .box-touch .icon:hover{
    
        transform:scale(1.2) rotate(360deg);
        -webkit-transform:scale(1.2) rotate(360deg);//谷歌浏览器
        -o-transform:scale(1.2) rotate(360deg); //苹果浏览器
        -moz-transform:scale(1.2) rotate(360deg);//火狐浏览器
    }
    
    .box-name .icon:hover{
    
        transform:scale(1.2) rotate(360deg);
        -webkit-transform:scale(1.2) rotate(360deg);//谷歌浏览器
        -o-transform:scale(1.2) rotate(360deg); //苹果浏览器
        -moz-transform:scale(1.2) rotate(360deg);//火狐浏览器
    }
    
    .box .button{
        display: block;
        156px;
        height:45px;
        line-height: 45px;
        margin: 20px auto;
        background:url(./images/01.png) no-repeat 100px center;
       font-family: "微软雅黑";
        font-weight: bolder;
        color: #2ecc71;
        text-decoration: none;
        padding-left: 20px;
        border:2px solid rgba(255,255,255,0.8);
    
        transition: all 0.2s ease;
        position: relative;
    }
    
    .box .button:hover{
    
        background-position: 140px center;
       border:2px solid rgba(255,255,255,1);
    }
    
    .box .line{
        background-color:red;
    
    }
    
    .box .line-top{
    
        0px;
        height:2px;
        display: block;
        position:absolute;
        top:-2px;
        left:-60px;
        transition: all 0.2s ease;
    }
    .box .button:hover .line-top{
        180px;
        left:-2px;
    }
    
    .box .line-bottom{
    
        0px;
        height:2px;
        display: block;
        position:absolute;
        bottom:-2px;
        right: -60px;
    
        transition: all 0.2s ease;
    }
    .box .button:hover .line-bottom{
        180px;
        left:-2px;
    }
    
    .box .line-left{
    
        2px;
        height:0px;
        display: block;
        position:absolute;
        bottom:-60px;
        left:-2px;
        transition: all 0.2s ease;
    }
    .box .button:hover .line-left{
       height:49px;
       bottom:-2px;
    
    
    }
    
    
    
    .box .line-right{
    
        2px;
        height:0px;
        display: block;
        top:-60px;
        position:absolute;
        right:-2px;
    
        transition: all 0.2s ease;
    }
    .box .button:hover .line-right{
        height: 49px;
        top:-2px;
    
    }
  • 相关阅读:
    msp430入门学习21--TA
    msp430入门学习20
    msp430入门学习17
    msp430入门学习16
    msp430入门学习15--时钟
    msp430入门学习14
    msp430入门学习13
    msp430入门学习12
    msp430入门学习11
    msp430入门学习10
  • 原文地址:https://www.cnblogs.com/benpaodegegen/p/6760128.html
Copyright © 2020-2023  润新知