Olympic rings painted

<!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>
    * {margin: 0;padding: 0;}
    .box {
        width: 380px;height: 186px;
        position: absolute;
        top: 50%;left: 50% ; 
        margin-Top : -93px ; margin-left : -190px ;
         / * box centered entirety browser * / 
    } 
    .box div { 
        width : 100px ; height : 100px ; 
        border : 10px Solid Black ; 
        border-RADIUS : 50% ;
         / * circle * / 
        position : Absolute ; 
    } 
    .box .circle1 {
        border-color: red;
        top: 0;left: 0;
    }
    .box .circle2 {
        border-color: green;
        top: 0;left: 130px;
        z-index: 1;
        /* 提升层级 */
    }
    .box .circle3 {
        border-color: yellow;
        top: 0;left: 260px ; 
    } 
    .box .circle4 { 
        border-Color : Blue ; 
        Top : 70px ; left : 65px ; 
    } 
    .box .circle5 { 
        border-Color : Purple ; 
        Top : 70px ; left : 195px ; 
    } / * Each set ⚪ respective colors, add an offset * / 
    </ style> 
</ head> 
<body> 
    <div class = "Box"> 
        <div class = "CIRCLE2"> </ div>
     
        <div class = "CIRCLE1"> </ div>
        <div class="circle3"></div>
        <div class="circle4"></div>
        <div class="circle5"></div>
    </div>
</body>
</html>

Renderings: Baidu >> Rings (funny)

Guess you like

Origin www.cnblogs.com/sandraryan/p/11112116.html