Css鼠标移入放大效果

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        body{
            text-align: center;
        }
        .box{
            width: 200px;
            height: 200px;
            margin: 50px auto;
            border-radius: 50%;
            background-color: brown;
            transition: all 0.5s;
            -webkit-transition: all .5s;/* Safari 和 Chrome */
            -moz-transition: all 0.5s;/* Firefox*/
            -ms-transition:all 0.5s; /* Internet Explorer */
            -o-transition: all 0.5s;/* Opera */
            cursor: pointer;
        }
        .box:hover{
            transform: scale(1.1);
            -webkit-transform: scale(1.1);
            -moz-transform: scale(1.1);
            -ms-transform: scale(1.1);
            -o-transform: scale(1.1);
        }
    </style>
</head>
<body>
    <div class="box"></div>
</body>
</html>

效果:
Css鼠标移入放大效果_第1张图片

你可能感兴趣的:(Css鼠标移入放大效果)