码迷,mamicode.com
首页 > Web开发 > 详细

HTML5每日一练之progress标签的应用

时间:2014-07-18 14:28:53      阅读:204      评论:0      收藏:0      [点我收藏+]

标签:style   http   color   strong   html   代码   

progress标签:
从名字上来看,估计大家也能猜到这个标签是什么标签了,没错,他是一个进度条。在HTML5中我们终于可以不用模拟了。

  1. <progress id="W3Cfuns_progress" max="100"></progress>
复制代码

progress属性:
value:表示当前进度
max:表示总进度
注:value和max属性的值必须大于0,value的值小于或等于max属性的值。



案例:

  1. <!DOCTYPE HTML>
  2. <html>
  3.     <head>
  4.         <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  5.         <title>HTML5每日一练progress标签的应用</title>
  6.     </head>
  7.     
  8.     <body>
  9.         <h1>W3Cfuns-HTML5每日一练progress标签的应用</h1>
  10.         <p>完成百分比:<progress id="W3Cfuns_progress" max="100"></progress></p>
  11.     </body>
  12. </html>

HTML5每日一练之progress标签的应用,布布扣,bubuko.com

HTML5每日一练之progress标签的应用

标签:style   http   color   strong   html   代码   

原文地址:http://www.cnblogs.com/liweitao/p/3852808.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!