老师,为什么鼠标移开后变回原形的时候字体会模糊?

来源:3-3 编程练习

慕运维6417758

2018-02-03 13:02:47

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>3-1作业</title>

    <style>

        div {

            font-size: 14px;

            font-weight: bold;

            line-height: 50px;

            position: fixed;

            top: 0;

            right: 0;

            bottom: 0;

            left: 0;

            width: 200px;

            height: 50px;

            margin: auto;

            cursor: pointer;

            text-align: center;

            background: #abcdef;

            /*此处写代码*/

            transform: rotate(0deg) scale(1);

            transition: transform 1s ease-in-out 0.1s;

           

        }

        /*此处写代码*/

        div:hover{

            transform: rotate(360deg) scale(2);

            transition: transform 1s ease-in-out 0.1s;

        }

       

    </style>

</head>

<body>

    <div>www.imooc.com</div>

</body>

</html>


写回答

2回答

weibo_星辰_Q_0

2018-03-08

把div里面的margin:auto;改成margin:0 auto;即可

0

嘘_别说话

2018-02-03

这应该是动画的转换以及字体的缩放引起的,我看效果图也是有这样的效果~这个没关系的

0

0 学习 · 5760 问题

查看课程