HTML/CSS 遊戲圖示
阿新 • • 發佈:2021-01-04
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 >
顯示: