网络编程 
首页 > 网络编程 > 浏览文章

jQuery实现的手动拖动控制进度条效果示例【测试可用】

(编辑:jimmy 日期: 2024/5/29 浏览:3 次 )

本文实例讲述了jQuery实现的手动拖动控制进度条效果。分享给大家供大家参考,具体如下:

这是一个手动控制进度条的小程序,分享给大家:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>www.jb51.net jQuery手动拖动进度条</title>
<style type="text/css">
 #box{position: relative; width: 200px; height: 50px; border: 1px solid #eee; margin: 50px auto 0;}
 #bg{height: 10px; margin-top: 19px; border: 1px solid #ddd; border-radius: 5px; overflow: hidden;}
 #bgcolor{background: #5889B2; width: 0; height: 10px; border-radius: 5px;}
 #bt{width: 34px; height: 34px;background-color: red; border-radius: 17px; overflow: hidden; position: absolute; left: 0px; margin-left: -17px; top: 8px; cursor: pointer;}
 #text{width: 200px; margin: 0 auto; font-size: 16px; line-height: 2em;}
</style>
<script src="/UploadFiles/2021-04-02/jquery.min.js">

运行效果:

jQuery实现的手动拖动控制进度条效果示例【测试可用】

更多关于jQuery相关内容感兴趣的读者可查看本站专题:《jQuery常用插件及用法总结》、《jQuery拖拽特效与技巧总结》、《jQuery常见经典特效汇总》、《jQuery扩展技巧总结》、《jQuery表格(table)操作技巧汇总》、《jQuery动画与特效用法总结》及《jquery选择器用法总结》

希望本文所述对大家jQuery程序设计有所帮助。

上一篇:JS点击动态添加标签、删除指定标签的代码
下一篇:浅谈vuepress 踩坑记
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网