zoukankan      html  css  js  c++  java
  • css图片放大

    <!DOCTYPE html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>无标题文档</title>
    <style>
    
    .box {
        overflow: hidden;
        cursor: pointer;
        border: 1px solid #ccc;
    }
    
    .zoom {
        /* 缩放的元素 */
        -webkit-transition: -webkit-transform .2s;
        transition: transform .2s;
    }
    .box:hover .zoom {
        /* hover放大 */
        -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
        transform: scale(1.05);
        zoom: 1.05;
    }
    :root .box:hover .zoom {
        zoom: 1;
    }
    
    </style>
    </head>
    
    <body>
    
    
     
    <div class="box">
        <img src="image/53e1d4a2Nf68afe13.jpg" class="zoom">
    </div>
    
    
    
    </body>
    </html>
  • 相关阅读:
    HDU 2795
    HDU 1394
    HDU 1754
    HDU 1166
    SDOI 2006
    HDU 1423
    HDU 1561
    centos7.4 搭建zabbix-server 3.4.5
    vim 简单笔记
    jdk环境并配置环境变量
  • 原文地址:https://www.cnblogs.com/Doduo/p/7656072.html
Copyright © 2011-2022 走看看