zoukankan      html  css  js  c++  java
  • 前端样式一(淡出二维码图片)

                        <a href="">
                            <img src="images/ft_l3.png" alt="">
                            <div class="ewm">
                                <img src="http://www.vztimes.com/static/default/images/ewm.jpg">
                            </div>
                        </a>

    css

     .ewm {
         width: 120px;
         padding: 5px;
         border-radius: 5px;
         background-color: #fff;
         border: 1px solid #ccc;
         position: absolute;
         bottom: 52px;
         left: 50%;
         margin-left: -60px;
         opacity: 0;
         visibility: hidden;
         transform: translateY(-10px);
         -webkit-transform: translateY(-10px);
         -moz-transform: translateY(-10px);
         -ms-transform: translateY(-10px);
         -o-transform: translateY(-10px);
         transition: all .5s;
         -o-transition: all .5s;
         -ms-transition: all .5s;
         -moz-transition: all .5s;
         -webkit-transition: all .5s;
     }
     
     .ewm:before {
         width: 0;
         height: 0;
         border-left: 10px solid transparent;
         border-right: 10px solid transparent;
         border-top: 8px solid #fff;
         content: "";
         position: absolute;
         bottom: -8px;
         left: 50%;
         margin-left: -10px;
     }
     
     a:hover .ewm {
         opacity: 1;
         visibility: inherit;
         transform: translateY(0);
         -webkit-transform: translateY(0);
         -moz-transform: translateY(0);
         -ms-transform: translateY(0);
         -o-transform: translateY(0);
     }
  • 相关阅读:
    jquery的each()详细介绍【转】
    牛客-小w的a=b问题
    HDU-6707-Shuffle Card(很数据结构的一道题)
    HDU-6672-Seq
    牛客-随机数
    牛客-小阳的贝壳
    HDU-4417-Super Mario
    牛客-Corn Fields
    HDU-2665-Kth number
    线段树模板
  • 原文地址:https://www.cnblogs.com/111wdh/p/14966006.html
Copyright © 2011-2022 走看看