zoukankan      html  css  js  c++  java
  • 携程transform放大效果

    <!DOCTYPE html>
    <html>
        <head>
            <meta charset="UTF-8">
            <title>携程tab</title>
            <style type="text/css">
                .img{
                    height: 110px;
                    width: 220px;
                    position: relative;
                    overflow: hidden;
                }
                .img img{
                    width: 220px;
                }
                .message{
                    background: url(http://pic.c-ctrip.com/platform/online/home/un_sprite_tag.png);
                    position: absolute;
                    top: 0;
                    left: 20px;
                    height: 41px;
                    width: 41px;
                    text-align: center;
                    color: white;
                    font-size: 14px;
                    padding-top: 5px;
                    /*overflow: hidden;*/
                    box-sizing: border-box;
                }
                .sell{
                    position: absolute;
                    bottom: 0;
                    background: rgba(0,0,0,0.5);
                    color: white;
                    width:100%;
                    font-size: 14px;
                    height: 30px;
                    line-height: 30px;
                }
                .area{
                    width: 220px;
                    overflow: hidden;
                    text-overflow: ellipsis;
                    white-space: nowrap;
                    font-size: 12px;
                }
                .img:hover img{
                    transform: scale(1.2);
                }
            </style>
        </head>
        <body>
            <div class="img">
                <img src="https://dimg03.c-ctrip.com/images/100s0800000033z714C56_C_500_280.jpg" />
                <span class="message">特卖</span>
                <div class="sell">超正航班,超级特卖</div>
            </div>
            <div class="area" title="巴厘岛5-6日4晚自由行(5钻)·库塔海滩零距离 五星万豪/喜来登 人气酒店">巴厘岛5-6日4晚自由行(5钻)·库塔海滩零距离 五星万豪/喜来登 人气酒店 </div>
        </body>
    </html>
  • 相关阅读:
    Linux开发初探
    Linux开发初探
    电脑使用说明书
    电脑使用说明书
    Delegates, Events, and Anonymous Methods 委托、事件与匿名方法
    CSS haslayout
    js与flash结合使用
    sgen.exe" exited with code 1.解决方法
    selenium
    selenium支付高版本的FireFox
  • 原文地址:https://www.cnblogs.com/lhl66/p/7528316.html
Copyright © 2011-2022 走看看