HTML/CSS 游戏图标
代码:
<!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>
div {
position: relative;
width: 0;
height: 0;
border: 50px solid red;
border-radius: 50%;
border-right-color: transparent;
}
div::before {
content: "";
/* display: block; */
position: absolute;
left: -10px;
top: -30px;
width: 15px;
height: 15px;
border-radius: 50%;
background-color: white;
}
</style>
</head>
<body>
<div></div>
</body>
</html>
显示: