利用所学边框知识,完成自己的小案例

原创 2019-07-18 12:42:37 275
摘要:<!DOCTYPE html> <html lang="en"> <head>     <meta charset="UTF-8">     <title>demo</title>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>demo</title>
    <style>
        .box1{
            width:300px;
            height:300px;
            background-color:lightgreen;
            border:1px solid green;
            border-radius:100%;
            position: relative;
            box-shadow:10px 10px 5px #ccc;
        }
        .box2{
            width:200px;
            height:200px;
            background-color:lightblue;
            border:1px double black;
            border-radius:100%;
            position: absolute;
            left:50px;
            top:50px;
        }
        .box3{
            width:100px;
            height:100px;
            background-color:lightsalmon;
            border:1px solid red;
            border-radius:100%;
            position: absolute;
            left:50px;
            top:50px;
        }
    </style>
</head>

<body>
<div class="box1">
    <div class="box2">
        <div class="box3"></div>
    </div>
</div>
<script>
</script>
</body>
</html>

效果

1.png


批改老师:查无此人批改时间:2019-07-19 13:10:57
老师总结:完成的不错。css样式学好,做出来的页面很绚丽。继续加油。

发布手记

热门词条