jqurey实现步骤进度条
来源:互联网 发布:火线精英战斗匕首数据 编辑:程序博客网 时间:2024/06/16 05:59
需导入插件
- jquery.min.js
- jquery.step.min.js
jquery.step.css
代码
<!DOCTYPE html><html><head><meta charset="utf-8" /><title>jQuery分步步骤</title><link rel="stylesheet" type="text/css" href="css/jquery.step.css" /><script src="js/jquery.min.js"></script><script src="js/jquery.step.min.js"></script><style>button { display: inline-block; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; text-align: center; cursor: pointer; border: 1px solid transparent; border-radius: 4px; color: #fff; background-color: #5bc0de;}.main { width: 1000px; margin: 100px auto;}#step { margin-bottom: 60px;}.btns { float: left;}.info { float: left; height: 34px; line-height: 34px; margin-left: 40px; font-size: 28px; font-weight: bold; color: #928787;}.info span { color: red;}</style></head><body><div class="main"> <div id="step"></div> <div class="btns"> <button id="prevBtn">上一步</button> <button id="nextBtn">下一步</button> <button id="btn1">跳到第二步</button> <button id="btn2">跳到第三步</button> </div> <div class="info">index:<span id="index"></span></div></div><script type="text/javascript"> var $step = $("#step"); var $index = $("#index"); $step.step({ index: 0, time: 500, title: ["填写申请表", "上传资料", "待确认", "已确认", "预约完成"] }); $index.text($step.getIndex()); $("#prevBtn").on("click", function() { $step.prevStep(); $index.text($step.getIndex()); }); $("#nextBtn").on("click", function() { $step.nextStep(); $index.text($step.getIndex()); }); $("#btn1").on("click", function() { $step.toStep(1); $index.text($step.getIndex()); }); $("#btn2").on("click", function() { $step.toStep(2); $index.text($step.getIndex()); });</script></body></html>
阅读全文
0 0
- jqurey实现步骤进度条
- jqurey
- jqurey
- JQurey
- 多步骤进度条的实现方法
- 多步骤进度条的实现方法
- Jqurey实现类似EasyUI的页面布局
- css+jquery步骤进度条
- 进度条实现
- 进度条实现
- 介绍一个超级简单的jqurey实现ajax
- jqurey + json + 存储过程 + asp.net实现无刷新分页
- jQurey全选,反选,不全选功能实现
- iOS中自定义步骤进度条
- iOS 自定义步骤实时进度条
- 学习jqurey
- jqurey简介
- jQurey选择器
- IText 导出PDF 中文问题解决
- comma.ai自动驾驶代码浅析及实践
- Android单元测试之 Robolectric3.0+
- Gossip算法
- JavaScript之浅拷贝和深拷贝
- jqurey实现步骤进度条
- 区块链解读-隔离见证
- Xcode 命令行参数
- Sql注入截取字符串常用函数
- java中synchronized的作用
- sublime 实现浏览器预览功能
- java 动态规划策略原理及例题
- centos5.8 解决中文乱码
- DX11编程之计算着色过滤器