1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <!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: 10px solid black; */
- border-width: 10px;
- border-style: solid;
- border-radius: 50%;
- position: absolute;
- }
- #blue{
- border-color: blue;
- left: 0;
- top: 0;
- }
- div::after{
- content: "";
- position: absolute;
- width: 200px;
- height: 200px;
- border-width: 10px;
- border-style: solid;
- border-radius: 50%;
- left: -10px;
- top: -10px;
- }
- #blue::after{
- border-color: blue;
- z-index: 1;
- border-bottom-color: transparent;
- }
- #black{
- border-color: black;
- left: 220px;
- }
- #black::after{
- border-color: black;
- z-index: 1;
- border-left-color: transparent;
- }
- #red{
- border-color: red;
- left: 440px;
- }
- #red::after{
- border-color: red;
- z-index: 1;
- border-left-color: transparent;
- }
- #orange{
- border-color: orange;
- left: 110px;
- top: 110px;
- }
- #orange::after{
- border-color: orange;
- }
- #green{
- border-color: green;
- left: 330px;
- top: 110px;
- }
- #green::after{
- border-color: 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="orange"></div>
- <div id="green"></div>
- </body>
- </html>
|