jquery实现可拖动滑块气球取值器代码
代码语言:html
所属分类:拖放
代码描述:jquery实现可拖动滑块气球取值器代码
下面为部分代码预览,完整代码请点击下载或在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;
overflow: hidden;
display: flex;
justify-content: center;
align-items: center;
}
.slidecontainer {
position: relative;
width: 70%;
}
.slidecontainer #value {
font-family: "Montserrat", sans-serif;
position: absolute;
transform-origin: "center center";
height: 70px;
width: 70px;
top: -4.25em;
margin: auto;
background: dodgerblue;
padding: 0;
border-radius: 50%;
color: #fff;
border: 5px solid orange;
font-size: 1.5em;
text-align: center;
line-height: 2.5;
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075), 0 2px 2px rgba(0, 0, 0, 0.075), 0 4px 4px rgba(0, 0, 0, 0.075), 0 8px 8px rgba(0, 0, 0, 0.075), 0 16px 16px rgba(0, 0, 0, 0.075);
}
.slidecontainer #value:after {
content: "";
position: absolute;
bottom: -40px;
left: calc(50% - 20px);
border-top: 20px solid orange;
border-bottom: 20px solid transparent;
border-left: 20px solid transparent;
border-right: 20px solid transparent;
}
.slidecontainer .slider {
-webkit-appearance: none;
appearance: none;
width: 100%;
height: 25px;
background: #d3d3d3;
background-size: 50% 100%;
background-repeat: no-repeat;
outline: none;
opacity: 0.7;
-webkit-tr.........完整代码请登录后点击上方下载按钮下载查看
网友评论0