这里只是一个小demo,一个用CSS3写的 进度 条。
如图所示:
具体代码如下:
<!DOCTY PE HT ML P ub LIC "-//W3C//DTD HTML 4.01//EN" "http://HdhCmsTestw3. org /TR/html4/strict.dtd"> <html> <head> <t IT le> new document </title> < ;m eta http-equiv="Content -t ype" content="text/html; charset=utf-8" /> <meta n am e="viewport" content="initial -s cale=1"> <style> . PR ocess-bar { width:100px; dis play :inline-block; *zoom:1; } .pb-wrapper { border:1px solid # CF d0d2; position:relative; background:#cfd0d2; border-radius: 8px; } .pb-cont ai ner { h ei ght:12px; position:relative; left:-1px; m arg in-right:-2px; font:1px/0 arial; padding:1px; } .pb-highlight { position:absolute; left:0; top:0; _top:1px; width:100%; opacity:0.6; filter:alpha(opacity=60); height:6px; background:white; font- Size: 1px; line-height:0; z -i ndex:1 } .pb-text { width:100%; position:absolute; left:0; top:0; text-align: center ; font:10px/12px arial; color:black; font:10px/12px arial } </style> </head> <body> <div class="process-bar skin-green"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">50%</div> <div class="pb-value" style="height: 100%;width: 50%;background: #19d73d;border-radius: 8px;"></div> </div> </div> </div> </body> </html>
以上所述是小编给大家介绍的使用CSS3 制作 一个 简单 的进度条(demo), 希望对大家有所帮助 ,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
总结
以上是 为你收集整理的 使用CSS3制作一个简单的进度条(demo) 全部内容,希望文章能够帮你解决 使用CSS3制作一个简单的进度条(demo) 所遇到的问题。
如果觉得 网站内容还不错, 推荐好友。
查看更多关于使用CSS3制作一个简单的进度条(demo)的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did201430