请问对吗?

来源:2-14 编程练习

神知

2020-12-01 08:52:55

# 具体遇到的问题

# 报错信息的截图

# 相关课程内容截图

# 尝试过的解决思路和结果

# 粘贴全部相关代码,切记添加代码注释(请勿截图)

在这里输入代码,可通过选择【代码语言】突出显示

<!DOCTYPE html>

<html>

<head>

    <meta charset="UTF-8">

    <title>Document</title>

    <style>

        #myTest{

            width: 100px;

            height: 100px;

            text-align: center;

            line-height: 100px;

            background-color: #f43838;

            margin: auto;

            margin-top: 100px;

            color: #FFF;

            cursor: pointer;

            font-size: 20px;

            font-weight: bold;

        /*添加代码*/

        transition:all 0.5s linear 0s;

        }

        #myTest:hover{

            /*添加代码*/

            border-radius:50%;

            transform:scale(2);

            background:green;

        }

    </style>

</head>

<body>

    <div id="myTest">  duang! </div>

</body>

</html>


写回答

1回答

好帮手慕张

2020-12-01

同学你好,效果是正确的,继续加油,祝学习愉快!


0

0 学习 · 15276 问题

查看课程

相似问题