div+css实现刻度滑块取值器拖动效果代码

代码语言:html

所属分类:拖放

代码描述:div+css实现刻度滑块取值器拖动效果代码

代码标签: div css 刻度 滑块 取值器 拖动

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

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

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


 
<style>
@import url("https://use.typekit.net/ers2qgl.css");
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  align-items: center;
  background: #243747;
  color: white;
  display: flex;
  font-family: "rift", sans-serif;
  font-size: 24px;
  font-weight: 600;
  justify-content: center;
}

label {
  display: block;
  margin-bottom: 2px;
}

.range-control {
  align-items: center;
  background: radial-gradient(60% 17% at 50% -2%, #96dded 0%, transparent 100%) no-repeat, 0px 0px/75% 100%, radial-gradient(60% 17% at 50% 102%, #96dded 0%, transparent 100%) no-repeat, 0px 0px/75% 100%, linear-gradient(rgba(94, 100, 111, 0.25) 3px, transparent 3px) 8px 4px/16px 16px, linear-gradient(to right, rgba(94, 100, 111, 0.25) 3px, transparent 3px) 8px 4px/16px 16px, rgba(43, 44, 43, 0.4);
  border-bottom: 2px solid #b0e5fb;
  border-top: 2px solid #b0e5fb;
  display: flex;
  height: 45px;
  justify-content: space-between;
  padding-left: 8px;
  position: relative;
  width: 375px;
}
.range-control:before, .range-control:after {
  background-color: rgba(255, 255, 255, 0.7);
  content: "";
  height: 41px;
  position: absolute;
  width: 2px;
}
.range-control:before {
  left: 0;
  top: 0;
}
.range-control:after {
  right: 0;
  top: 0;
}
.range-control .range-slider-container {
  align-items: center;
  display: flex;
}
.range-control .range-slider-cont.........完整代码请登录后点击上方下载按钮下载查看

网友评论0