CSS

语言:

CSSSCSS

确定

.frame {

position: absolute;

top: 50%;

left: 50%;

width: 400px;

height: 400px;

margin-top: -200px;

margin-left: -200px;

border-radius: 2px;

box-shadow: 1px 2px 10px 0px rgba(0, 0, 0, 0.3);

overflow: hidden;

background: #506172;

color: #fff;

font-family: 'Open Sans', Helvetica, sans-serif;

-webkit-font-smoothing: antialiased;

-moz-osx-font-smoothing: grayscale;

}

.center {

box-sizing: border-box;

position: absolute;

width: 300px;

height: 40px;

top: 180px;

left: 50px;

background: #fff;

border-radius: 3px;

box-shadow: 2px 4px 8px 0 rgba(0, 0, 0, 0.3);

padding: 5px 15px;

}

[type=range] {

-webkit-appearance: none;

margin: 0;

width: 270px;

height: 30px;

}

[type=range]:focus {

outline: none;

}

[type=range]::-moz-focus-outer {

border: 0;

}

[type=range]::-webkit-slider-runnable-track {

width: 270px;

height: 4px;

cursor: pointer;

-webkit-transition: all .2s ease;

transition: all .2s ease;

background: #7AD175;

border: none;

border-radius: 2px;

box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.2);

}

[type=range]::-webkit-slider-thumb {

border: 2px solid #7AD175;

height: 24px;

width: 24px;

border-radius: 24px;

background: #fff url(http://100dayscss.com/codepen/slider-thumb.png) center center no-repeat;

background-size: 50% 50%;

cursor: pointer;

box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);

-webkit-appearance: none;

margin-top: -10px;

}

[type=range]::-moz-range-track {

width: 270px;

height: 4px;

cursor: pointer;

-webkit-transition: all .2s ease;

transition: all .2s ease;

background: #7AD175;

border: none;

border-radius: 2px;

box-shadow: inset 0 1px 1px 0 rgba(0, 0, 0, 0.2);

}

[type=range]::-moz-range-thumb {

border: 2px solid #7AD175;

height: 24px;

width: 24px;

border-radius: 24px;

background: #fff url(http://100dayscss.com/codepen/slider-thumb.png) center center no-repeat;

background-size: 50% 50%;

cursor: pointer;

box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);

}

[type=range]::-ms-track {

width: 270px;

height: 4px;

cursor: pointer;

-webkit-transition: all .2s ease;

transition: all .2s ease;

background: transparent;

border-color: none;

color: transparent;

}

[type=range]::-ms-fill-lower,

[type=range]::-ms-fill-upper {

background: #7AD175;

border: none;

border-radius: 2px;

}

[type=range]::-ms-thumb {

border: 2px solid #7AD175;

height: 24px;

width: 24px;

border-radius: 24px;

background: #fff url(http://100dayscss.com/codepen/slider-thumb.png) center center no-repeat;

background-size: 50% 50%;

cursor: pointer;

box-shadow: 1px 2px 4px 0 rgba(0, 0, 0, 0.1);

}

html选择拖动条,纯CSS做的滑动范围选择条相关推荐

  1. css二级横向导航条,纯CSS实现的横向二级导航菜单(无js兼容性强)

    内容介绍热点排行相关文章下载地址↓ 纯CSS实现,无JavaScript,效果不错,实用性强,兼容各种浏览器! 第一步: 下载源代码及背景图片 第二步: 在网页 区添加样式定义 [code] /* = ...

  2. 纯CSS实现的滑动的可折叠菜单

    纯CSS实现的二级纵向下拉菜单,可以滑动折叠,无需JavaScript代码,兼容性好 查看演示页面 View Demo查看全部代码 View Code 下载: 点击这里下载网页代码及演示图片 在网页& ...

  3. 一张图不用,纯CSS 做个生日贺卡

    朋友生日了,直接画,炫技并且表示本人闲的全身疼才会去拿CSS画画,以此嘲弄对方的加班: 既然贺卡做出来了,那就顺便介绍一下贺卡制作流程吧,其实也不是什么技术,也就是CSS 拼拼拼就可以了,简简单单. ...

  4. 自学篇之-----纯css做的漂亮的单选框复选框样式

    2019独角兽企业重金招聘Python工程师标准>>> <!DOCTYPE html> <html> <head> <title>ch ...

  5. 纯CSS做一个吃豆人动画

    我们先来看看将要实现的效果:    可以单击这个链接打开查看效果和代码:https://codepen.io/sd237720488/pen/LMyNxJ 接下来我们来看看怎么实现的,首先它可以分为两 ...

  6. html阴影特效作品及代码,纯CSS做特效网页(阴影,透明,画圆圈等等)

    每天进步一点,其实是很了不起的事情了. 废话不多说,直接看图! 效果2 效果2 第一步(可以先把背景图搞出来,当然你也可以先画主体,最后在搞背景,看自己心情嘛) html body {margin: ...

  7. 使用纯css做一个播放器

    首先,贴出成品图,如下: 可以发现播放器的基本形状有了,但是需要精确到每一个方向,不能溢出,就得以如下的方式写,贴出静态代码: html如下: <!DOCTYPE html> <ht ...

  8. 纯css炫酷动态加载条

    模仿windows风格的动态加载条,目前颜色更宽度是写死的,没有用clac的原因是因为它会跑得太原获取的100%是窗口宽度而不是父div宽度. <!DOCTYPE html> <ht ...

  9. css3 万花筒原理,纯CSS做的万花筒效果

    CSS 语言: CSSSCSS 确定 body { background-color: #222; } .circle { top: 20px; width: 300px; height: 300px ...

最新文章

  1. AI一分钟 | 马斯克证实:特斯拉私有化的幕后推手是沙特主权基金;DeepMind的AI可以检测出超过50种眼疾...
  2. 锐捷2126G部分基础配置(升级系统固件、telnet、vlan)
  3. CSDN下载资源+全领域电子书+程序员提升课,领取这些不香吗?
  4. Mysql的row_format(fixed与dynamic)
  5. Python基础数据类型之字符串(一)
  6. Model-View-Presenter模式之 Step by Step
  7. CentOS启动Tomcat巨慢
  8. 计划备份mysql数据库
  9. IPtables终于可以使用了,客户机不可以上网的问题解决了
  10. 开心农场最新外挂助手下载
  11. c++:std::dec, std::hex, std::oct
  12. 街头篮球服务器维护,《街头篮球》4月23日新版活动抢先看
  13. Contest chair of English humor speech contest-2013-8-30
  14. 环境会计信息披露问题研究
  15. Python机器学习个人总结
  16. UnityShader镜面反射计算与反射光向量推导
  17. Python:K折交叉验证,将数据集分成训练集与测试集
  18. 又来了!10分钟实现微信 “炸屎“大作战
  19. MTK AF Tuning Preparation项目
  20. [JavaScript]如何将www.xxx.com变为com.xxx.www

热门文章

  1. hibernate.validator验证参数
  2. h5 宽度全屏自适应
  3. Python---HTML表单
  4. 关于P,V操作理解的分析
  5. redis、mysql、和php原生array数组效率对比
  6. Hive UDF开发
  7. linux中文输入法 ibus
  8. 创建log文件的代码
  9. 如何做好需求变更管理?——需求变更流程规范
  10. 小小c#算法题 - 1 - 找出数组中满足条件的两个数