zoukankan      html  css  js  c++  java
  • 悬浮框的制作

    css代码:

    <style>
    * {
    margin: 0;
    padding: 0;
    border: none;
    zoom: 1;
    }
    ul li {
    list-style: none;
    }
    .box {
    52px;
    height: 162px;
    border: 1px solid #ccc;
    margin-left: 30%;
    margin-top: 10%;
    position: relative
    }
    .box ul li {
    48px;
    display: block;
    height: 50px;
    padding: 2px;
    overflow: hidden
    }
    .weixin {
    background: url(elevator.png) no-repeat;
    background-position: 0 87%;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    }
    .weixin:hover {
    background-position: 0 93%
    }
    .weixin:hover .weixin-logo {
    170px;
    height: 204px;
    }
    .idea {
    background: url(elevator.png) no-repeat;
    background-position: 0 43%;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    }
    .idea:hover {
    background-position: 0 49%;
    }
    .app {
    background: url(elevator.png) no-repeat;
    background-position: 0 55%;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    }
    .app:hover {
    background-position: 0 61%;
    }
    .app:hover .app-logo {
    170px;
    height: 185px;
    -webkit-transform: rotate(360deg);
    -moz-transform: rotate(360deg);
    -ms-transform: rotate(360deg);
    -o-transform: rotate(360deg);
    }
    .weixin-logo {
    background: url(elevator.png) no-repeat;
    background-position: 0 0;
    0px;
    height: 0px;
    overflow: hidden;
    position: absolute;
    top: -154px;
    left: -171px;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    }
    .app-logo {
    background: url(elevator.png) no-repeat;
    background-position: 0 26%;
    0px;
    height: 0px;
    overflow: hidden;
    position: absolute;
    top: -18px;
    left: -171px;
    -webkit-transition: all .3s;
    -moz-transition: all .3s;
    -ms-transition: all .3s;
    -o-transition: all .3s;
    }
    </style>

    html代码:

    <body>
    <div class="box">
    <ul>
    <li class="weixin">
    <div class="weixin-logo"></div>
    </li>
    <li class="idea"></li>
    <li class="app">
    <div class="app-logo"></div>
    </li>
    </ul>
    </div>
    </body>

  • 相关阅读:
    windows CMD大全
    算法导论(一):渐进记号
    数据结构之树
    Python读取文件内容与存储
    Python绘图的颜色设置
    Python中多个列表与字典的合并方法
    Pandas之Dataframe叠加,排序,统计,重新设置索引
    数据挖掘——聚类算法(一)
    WPF学习————制作时钟
    Opencv Sharp 基于灰度模板的多目标匹配
  • 原文地址:https://www.cnblogs.com/tuhailin/p/5627285.html
Copyright © 2011-2022 走看看