jquery-ui实现一个水平拖拽范围选择器效果代码

代码语言:html

所属分类:选择器

代码描述:jquery-ui实现的一个水平数值拖拽范围选择器效果代码

代码标签: jquery-ui 水平 拖拽 范围 选择器

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

<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <style>
        html {
      box-sizing: border-box;
    }
    
    *, *:before, *:after {
      box-sizing: inherit;
    }
    
    html,
    body {
      height: 100%;
      min-width: 500px;
    }
    
    body {
      background: #e8e8e8;
      -webkit-font-smoothing: antialiased;
    }
    
    sup {
      font-size: 80%;
      vertical-align: top;
      position: relative;
      top: 1px;
    }
    
    .wrapper {
      display: table;
      width: 100%;
      height: 100%;
    }
    
    .container {
      display: table-cell;
      vertical-align: middle;
      text-align: center;
    }
    
    .slider-wrapper {
      width: 500px;
      display: inline-block;
      position: relative;
      font-family: arial;
    }
    
    .ui-slider {
      background: #efefef;
      border: 1px solid #d2d2d2;
      height: 20px;
      position: relative;
      border-radius: 100px;
    }
    
    .ui-slider-range {
      background: #71c0ff;
      height: 20px;
      position: absolute;
      border-top: 1px solid #5d99c8;
      border-bottom: 1px solid #5d99c8;
      transform: translateY(-1px);
    }
    .ui-slider-range:after {
      con.........完整代码请登录后点击上方下载按钮下载查看

网友评论0