meter度量值,也可用作进度条
2016-06-10 13:30
260 查看
<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title></title> </head> <body> <input type="button" value="点击" onclick="btn()"> <meter value="0" max="100" min="0" low="20" high="30" id="p" style="width:200px;height:10px;"></meter><span>0</span>% </body> <script> function btn(){ var i=1; function xiugai(){ if(i<100){ i++; updateV(i); } } setInterval(xiugai, 100); } function updateV(v){ var p=document.getElementById("p"); p.value=v; var span=document.getElementsByTagName("span")[0].textContent=v; } </script> </html>
相关文章推荐
- 创建自定义的RouteBase实现(Creating a Custom RouteBase Implementation) |定制路由系统 |
- Broadcast广播机制
- JqueryEasyUi追加自定义工具标签
- 111. Minimum Depth of Binary Tree
- MySQL-5.6.24的配置安装
- iOS视频录制、压缩导出、取帧
- STM32F0xx_PWR低功耗配置详细过程
- Java设计模式之适配器模式
- style_include_selector
- 修改tomcat服务器默认的端口号
- Codeforces Round #356 (Div. 2) D.
- SpringMVC之http请求头和响应头(四)
- YY的GCD [Bzoj 2820]
- 改变语言并重新刷新界面
- 一个简单的epoll使用例子
- JavaScript中Event.returnValue属性
- eclipse/myeclipse 使用技巧
- 即时通信技术--IM系列之二
- 约瑟夫环的实现
- Hibernate与数据库事务