css+div实现圆环进度条效果代码

代码语言:html

所属分类:进度条

代码描述:css+div实现圆环进度条效果代码

代码标签: css div 圆环 进度条

下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开

<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  

    
  
  
  
<style>
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  gap: 20px;
  place-items: center;
  background: #1d1e22;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.percentage {
  --colorf3: #f3ffff;
  --color13: #132023;
  width: 72px;
  aspect-ratio: 1;
  background: conic-gradient(transparent 0, transparent var(--p), #c9d6d7 0), conic-gradient(var(--colorf3), #ffe500, #ff0818, #ffe500, var(--colorf3)), conic-gradient(#c9d6d7, transparent 10%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.percentage .number {
  width: 80%;
  aspect-ratio: 1;
  display: inherit;
  align-items: inherit;
  justify-content: inhe.........完整代码请登录后点击上方下载按钮下载查看

网友评论0