首页
网页制作
网络编程
脚本专栏
数据库
网站运营
网络安全
平面设计
CMS教程
搜索
建站极客
网页制作
CSS
正文
纯css制作的漂亮好看的进度条
所属分类:
网页制作
/
CSS
阅读数: 563
收藏 0
赞 0
分享
效果
50%
兼容
IE6/7/8
Chrome 4
Firefox 3.5 等等
更多效果
<!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; charset=gb2312" /><style>.process-bar{width:100px;display:inline-block;*zoom:1;}.pb-wrapper{border:1px solid gray;border-style:solid none;position:relative;background:#cfd0d2;}.pb-container{border:1px solid gray;border-style:none solid;height:12px;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;}.pb-value{height:100%;width:50%;background:#19d73d;}.pb-text{color:black;font:10px/12px arial}/* -- 以下是重写的皮肤 -- *//* green */.skin-green .pb-wrapper{border-color:#666;border-top-color:#628c2d;}.skin-green .pb-container{border-color:#666;border-left-color:#628c2d;}.skin-green .pb-text{ color:black }/* blue */.skin-blue .pb-wrapper{border-color:#0e7c78;border-top-color:#41beb9;}.skin-blue .pb-container{border-color:#0e7c78;border-left-color:#41beb9;}.skin-blue .pb-text{color:white}.skin-blue .pb-value{background:#159b96;}/* red */.skin-red .pb-wrapper{border-color:#8e1411;border-top-color:#cb3d3a;}.skin-red .pb-container{border-color:#8e1411;border-left-color:#cb3d3a;}.skin-red .pb-text{color:#470200;}.skin-red .pb-value{background:#d70500}/* orange */.skin-orange .pb-wrapper,.skin-orange .pb-container{border-color:#d55110;}.skin-orange .pb-text{color:#250f00;}.skin-orange .pb-value{background:#d75a00;}/* purple */.skin-purple .pb-wrapper,.skin-purple .pb-container{border-color:#a90561;}.skin-purple .pb-text{color:#720040;}.skin-purple .pb-value{background:#9d118e}/* black */.skin-black .pb-wrapper,.skin-black .pb-container{border-color:black}.skin-black .pb-text{color:gray;}.skin-black .pb-value{background:#111111;}/* 分割线样式 */.hua-li-de-fen-ge-xian{border-bottom:2px dashed #eee;height:1px;font-size:1px;margin:5px 0}</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">10%</div> <div class="pb-value"></div> </div> </div> </div> <div class="hua-li-de-fen-ge-xian"></div> <div class="process-bar skin-blue"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">100%</div> <div class="pb-value" style="width:100%"></div> </div> </div> </div> <div class="hua-li-de-fen-ge-xian"></div> <div class="process-bar skin-red"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">18%</div> <div class="pb-value" style="width:18%"></div> </div> </div> </div> <div class="hua-li-de-fen-ge-xian"></div> <div class="process-bar skin-orange"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">55%</div> <div class="pb-value" style="width:55%"></div> </div> </div> </div> <div class="hua-li-de-fen-ge-xian"></div> <div class="process-bar skin-purple"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">32%</div> <div class="pb-value" style="width:32%"></div> </div> </div> </div> <div class="hua-li-de-fen-ge-xian"></div> <div class="process-bar skin-black"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">78%</div> <div class="pb-value" style="width:78%"></div> </div> </div> </div></body></html>
提示:您可以先修改部分代码再运行
综合例子
<!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; charset=gb2312" /> <style> .process-bar { width:100px; display:inline-block; *zoom:1; } .pb-wrapper { border:1px solid gray; border-style:solid none; position:relative; background:#cfd0d2; } .pb-container { border:1px solid gray; border-style:none solid; height:12px; 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; } .pb-value { height:100%; width:50%; background:#19d73d; } .pb-text { color:black; } .grid { border-collapse : collapse ; font:12px/1.5 arial; background:white; border:1px solid gray; width:500px; } .grid td, .grid th { padding:5px } .grid th { background:#eee; color:black; text-align:left; font-weight:normal } </style> </head> <body> <table cellpadding="0" cellspacing="0" border="1" class="grid" rules="rows" frame="void"> <tr> <th> 项目ID </th> <th> 项目名称 </th> <th> 开始时间 </th> <th> 项目进度 </th> </tr> <tr> <td> #200912110001 </td> <td> 项目管理系统 </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">99%</div> <div class="pb-value" style="width:99%"></div> </div> </div> </div> </td> </tr> <tr> <td> #2009654001 </td> <td> ERP </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">10%</div> <div class="pb-value" style="width:10%"></div> </div> </div> </div> </td> </tr> <tr> <td> #200916540001 </td> <td> OA </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">89%</div> <div class="pb-value" style="width:89%"></div> </div> </div> </div> </td> </tr> <tr> <td> #20091214501 </td> <td> 河蟹养殖系统 </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">54%</div> <div class="pb-value" style="width:54%"></div> </div> </div> </div> </td> </tr> <tr> <td> #200912110001 </td> <td> 项目管理系统 </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">99%</div> <div class="pb-value" style="width:99%"></div> </div> </div> </div> </td> </tr> <tr> <td> #2009654001 </td> <td> ERP </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">10%</div> <div class="pb-value" style="width:10%"></div> </div> </div> </div> </td> </tr> <tr> <td> #200916540001 </td> <td> OA </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">89%</div> <div class="pb-value" style="width:89%"></div> </div> </div> </div> </td> </tr> <tr> <td> #20091214501 </td> <td> 河蟹养殖系统 </td> <td> 2010-12-01 </td> <td> <div class="process-bar"> <div class="pb-wrapper"> <div class="pb-highlight"></div> <div class="pb-container"> <div class="pb-text">54%</div> <div class="pb-value" style="width:54%"></div> </div> </div> </div> </td> </tr> </table> </body> </html>
提示:您可以先修改部分代码再运行
睡觉去喽~
更多精彩内容
其他人还在看
CSS入门教程:计算CSS盒模型宽和高
出处:当我们布局一个网页的时候,经常会遇到这样的一种情况,那就是最终网页成型的宽度或是高度会超出我们预先的计算,其实就就是所谓的CSS的盒模型造成的。 #test{margin:10px;padding:10px;width:100px;height:100px;}
评论 0
收藏 0
赞 0
分享
在IE流览器中正确显示PNG透明图片
png图片有很好的品质。阴影效果也不会有杂边,很流畅。如果插入网页的话可以给网站内容增色不少!更重要的是在不增加图片容量大小的情况下提高了页面的图片的质量。对于有复杂背景,如:在有颜色过度背景上插入不规则边框的图片带来极大很便利! 但目前IE中对于插入
评论 0
收藏 0
赞 0
分享
CSS教程:DIV底部放置文字
css对文字的布局上没有靠容器底部对齐的参数,目前使用的一个不错的方法也比较好.就是用position属性来解决,看下面的代码,用position的相对和绝对定位功能也轻松的实现了,文字靠近div低部对齐,并且靠近的距离还可以精确到像素,自己可以调节,是不是很不错呢?
评论 0
收藏 0
赞 0
分享
如何用CSS让文字居于div的底部
这个问题是别人提出的,因为css对文字的布局上没有靠容器底部对齐的参数,(或许有但是我没有发现)不过目前我使用的一个不错的方法也比较好.就是用position属性来解决,看下面的代码,我用position的相对和绝对定位功能也轻松的实现了,文字靠近div低部对齐,并且靠近
评论 0
收藏 0
赞 0
分享
从A页面连接到B页面后并直接把B页面的隐藏层显示
这个效果实现的是,在B页面里有两个层,一个显示层,我们暂定名c层,一个是隐藏层,我们暂定名d层,单独进B页面的时候,c层显示,d层隐藏,然而从A页面连接到B页面的时候,则是让d层显示,c层隐藏,我觉得这个效果对网页设计者以后会有很大帮助,现在把代码发出来,
评论 0
收藏 0
赞 0
分享
CSS样式表定义标签li前面样式
定义LI前面的小点样式 view plaincopy to clipboardprint? 语法: list-style-type : disc | circle | square | decimal | lower-roman | upper-roman | lowe
评论 0
收藏 0
赞 0
分享
符合标准的div css制作的弹出菜单
本文介绍了五款符合标准的div css制作的弹出菜单,而且不含有js的. NO.1最基本的:二级dropdown弹出菜单 <!DOCTYPE html PUB
评论 0
收藏 0
赞 0
分享
CSS实现在文章每段后面加入带连接的隐藏文字
代码主要理解3个参数:createElement、createTextNode、appendChild。这3个js参数分别是创建元素、创建字符、追加节点。代码原理:循环页面段落标签<p>,创建连接元素<a>,创建要显示的连接字符,用SetAttribute
评论 0
收藏 0
赞 0
分享
CSS:浏览器特定选择器介绍
当你想在一个浏览器里改变样式而不像在其他浏览器中改变时,这些选择器很有用。 IE6以下 *html{} IE 7 以下 *:first-child html {} * html {} 只对IE 7 *:first-child html {} 只对IE 7
评论 0
收藏 0
赞 0
分享
WEB标准学习,认识两种网页声明的含义
即网页标准推出来以后,我们时常会看到两种不同的网页的声明,一个是Dhtml,一个是Xhtml。如下所示: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "ht
评论 0
收藏 0
赞 0
分享
查看更多
网络赚钱
更多
调查:55.2%受访用户不会相信朋友圈打广告的化妆品
儿子网购Q币被骗 父亲怒找客服投诉又被骗
潘定国的粉丝经济学的重点:移动互联网核心是以人为本
怎么才能做好移动互联网营销?
百度联盟点击率低的原因
做什么样的网站能赚钱?
站长故事
更多
传统地摊转型网络营销90后农村小伙子月入过万
站长故事 新站两个月权重上升到3的经验分享
探讨:为什么个人站长越来越不愿做seo独立博客
人物:戴志康,80后创业者携惊叹号而来
做好网站维护 持续吸引用户浏览
90后男子新婚杀妻后将照片发朋友圈续:被判死缓