12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- *{
- margin: 0;
- padding: 0;
- }
- div{
- width: 200px;
- height: 200px;
- border-radius: 50%;
- border-width: 10px;
- border-style: solid;
- position: absolute;
- }
- #blue{
- border-color: blue;
- left: 0;
- top: 0;
- }
- div::after{
- content: "";
- position: absolute;
- width: 200px;
- height: 200px;
- border-radius: 50%;
- left: -10px;
- top: -10px;
- }
- #blue::after{
- border: 10px solid blue;
- z-index: 1;
- border-bottom-color:transparent;
- }
- #black{
- border-color: black;
- left: 220px;
- top: 0;
- }
- #black::after{
- border: 10px solid black;
- z-index: 1;
- border-left-color: transparent;
- }
- #red{
- border-color: red;
- left: 440px;
- top: 0;
- }
- #red::after{
- border: 10px solid red;
- z-index: 1;
- border-left-color: transparent;
- }
- #yellow{
- border-color: yellow;
- left: 110px;
- top: 110px;
- }
- #green{
- border-color: green;
- left: 330px;
- top: 110px;
- }
- #green::after{
- border: 10px solid green;
- z-index: 1;
- border-top-color: transparent ;
- border-right-color: transparent;
- }
- </style>
- </head>
- <body>
- <div id="blue"></div>
- <div id="black"></div>
- <div id="red"></div>
- <div id="yellow"></div>
- <div id="green"></div>
- </body>
- </html>
|