老师看看哪里还需要改进

来源:2-11 编程练习

Swan不是HeySwan

2020-11-09 22:45:37

# 具体遇到的问题

# 报错信息的截图

# 相关课程内容截图

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

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

在这里输

<!DOCTYPE html>

<html>


<head>

    <title>border-radius</title>

    <style type="text/css">

        /*此处添加代码*/

        *{

            padding0;

            margin0;

        }

        .cc{

            position: relative;

            width400px;

            height400px;

        }

        .aa{

           width0;

           height0;

           border200px solid transparent;

           border-left200px solid red;

           border-radius150px;

           position: absolute;

           left40px


        }

        .bb{

           width0;

           height0;

           border200px solid transparent;

           border-right200px solid red;

           position: absolute;

           bottom1px;

           left10px;

           border-radius150px;

        }


    </style>

</head>


<body>

    <!-- 此处添加代码 -->

     <div class="cc">

         <div class="aa"></div>

         <div class="bb"></div>

     </div>

</body>


</html>

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

写回答

1回答

好帮手慕言

2020-11-10

同学你好,效果是对的,不过代码还可以再简化一下,例如:

http://img.mukewang.com/climg/5fa9f7470985363305500813.jpg

祝学习愉快~

0

0 学习 · 15276 问题

查看课程