如图所示,像这样的
编辑HTML,现在可以使用VS CODE,功能还是比较强大的。
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Document</title> <style> .div1{ width: 0; height: 0; border: 25px solid #ccc; border-radius: 50%; border-right-color: transparent; } .div2{ width: 0; height: 0; border: 25px #ccc solid; border-radius: 50%; border-left-color: transparent; border-right-color: transparent; border-top-color: red; border-bottom-color: blue; } </style> </head> <body> <div class="div1"> </div> <div class="div2"> </div> </body> </html>