这里只是一个小demo,一个用css3写的进度条。
如图所示:
具体代码如下:
<!doctype html public "-//w3c//dtd html 4.01//en" "http://www.w3.org/tr/html4/strict.dtd"><html><head><title> new document </title><meta http-equiv="content-type" content="text/html; chart=utf-8" /><meta name="viewport" content="initial-scale=1"><style>.process-bar{ width:100px; display:inline-block; *zoom:1;}.pb-wrapper{ border:1px solid #cfd0d2; position:relative; baangelababy图片ckground:#cfd0d2; border-radius: 8px;}.pb-container{ height:1刘邦与项羽2px; position:relative; left:-1px; margin-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-index: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-rremarkadius: 8px;"></div> </div> </div> </div></body></html>
以上所述是www.887551.com给大家介绍的使用css3制作一个简单的进度条(demo),希望对大家有所帮助
本文发布于:2023-04-06 22:00:11,感谢您对本站的认可!
本文链接:https://www.wtabcd.cn/fanwen/zuowen/227c924e945b29af1924e4925e8ecfea.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文word下载地址:使用CSS3制作一个简单的进度条(demo).doc
本文 PDF 下载地址:使用CSS3制作一个简单的进度条(demo).pdf
留言与评论(共有 0 条评论) |