css实现条纹进度条效果代码

代码语言:html

所属分类:进度条

代码描述:css实现条纹进度条效果代码

代码标签: 进度 效果

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


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

<head>

  <meta charset="UTF-8">
  

  
  
<style>
* {
  box-sizing: border-box;
}
:root {
  --base: #1a1a1a;
  --red: #e61919;
  --bg: repeating-linear-gradient(-45deg, var(--red) 0 0.5vmin, #fff 0.5vmin 1.5vmin, var(--red) 1.5vmin 2vmin);
  --shadow: inset 0 0 3vmin #364563;
}
body {
  background-color: #242442;
  min-height: 100vh;
  display: -webkit-box;
  display: flex;
  -webkit-box-align: center;
          align-items: center;
  -webkit-box-pack: center;
          justify-content: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
          flex-direction: column;
}
body > * + * {
  margin: 2rem 0 0 0;
}
pre {
  background: var(--base);
  padding: 1rem;
  font-family: monospace;
  color: #fff;
  font-weight: bold;
  max-width: 100%;
}
pre code {
  max-width: 100%;
}
[type='range'] {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  height: 44px;
  background: linear-gradient(transparent 0 20px, #fff 20px 24px, transparent 24px 44px);
  outline: rgba(255,255,255,0);
}
[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: #fff;
  border: 4px solid #242442;
  border-radius: 50%;
  cursor: pointer;
}
[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: #fff;
  border: 4px solid #242442;
  border-radius: 50%;
}
progress {
  -webkit-appearance: none;
.........完整代码请登录后点击上方下载按钮下载查看

网友评论0