首页
网页制作
网络编程
脚本专栏
数据库
网站运营
网络安全
平面设计
CMS教程
搜索
建站极客
网页制作
CSS
正文
纯css制作的漂亮好看的进度条
所属分类:
网页制作
/
CSS
阅读数: 555
收藏 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的分离还是js的分离,其主要作用之一就是精简与重用,CSS本身就代表着精简与重用,CSS样式分离,我一般指的是“以单独的CSS文件将CSS样式分离出来”,此处的重用多针对不同页面的重用,就是说,一个样式文件,可以多个页面使用,这对于一些公共样式的重构是很有
评论 0
收藏 0
赞 0
分享
CSS属性behavior的语法使用说明
在进行CSS网页布局的时候,我们经遇到刷新要保留表单里内容的时候,习惯的做法使用cookie,但是那样做实在是很麻烦,css中的behavior就为我们很好的解决了这个问题。今天jb51.net就向大家介绍CSS属性behavior的语法
评论 0
收藏 0
赞 0
分享
网页制作中的水平居中和垂直居中解决方法集合
在定义网页的CSS样式的时候,我们或许并不怎么用到垂直居中。
评论 0
收藏 0
赞 0
分享
最常见IE的Bug及其fix修复方法
Internet Explorer – Web程序员的毒药。在IE上开发时间中有超过60%的时间是花在和IE的bug进行搏斗,让你的开发生产率严重下降。下面是一个教程,告诉你9个IE上最常见的BUG以及如何解决它们。
评论 0
收藏 0
赞 0
分享
CSS常用浏览器兼容调整小结
用CSS+DIV来写网站代码的好处显而易见,这里不多说了,但由于不同浏览器对CSS的解释不统一,造成不同浏览器下页面错位的现象十分常见……
评论 0
收藏 0
赞 0
分享
css firefox火狐浏览器下的兼容性问题
css firefox火狐浏览器下的兼容性问题
评论 0
收藏 0
赞 0
分享
DIV+CSS 浏览器兼容性小结
在网站设计的时候,应该注意css样式兼容不同浏览器问题,特别是对完全使用DIV CSS设计的网,就应该更注意IE6 IE7 FF对CSS样式的兼容,不然,你的网乱可能出去不想出现的效果!
评论 0
收藏 0
赞 0
分享
div+css 布局常识 8问
CSSer与其他IT职位一样,在找工作的时候,都会面临着面试官提出的问题,或者给出的试卷。今天jb51.net收集了常见的8条面试题目,希望对您有所帮助。
评论 0
收藏 0
赞 0
分享
CSS用四种方式实现布局
CSS用四种方式实现布局
评论 0
收藏 0
赞 0
分享
css 解决表格边框不显示的问题
在 IE6 中,当表格单元格中的数据为空时,边框是不显示的,在IE8中是会显示的,怎样解决这个不兼容的问题呢。
评论 0
收藏 0
赞 0
分享
查看更多
网络赚钱
更多
青西一女子轻信网络刷单2小时赚400元 被骗15万元
90后男屌丝如何让淘宝客日赚10万滴
潘定国的粉丝经济学的重点:移动互联网核心是以人为本
SEO赚钱之道:11种可以让你盈利的SEO实业方法
816京东免单活动内容、规则 免单攻略
草根站长靠什么赚钱?什么样的人能成为赚钱的草根站长?
站长故事
更多
作为站长的你是否已有危机感:你被盯上了
小白站长:一次网站被 K 的经历
从月薪3500到身价3千万
一个日IP2000的网站,我赚了20万
站长故事之我的个人站长之路
运营网站需要修炼三层内功 很多人都维持在第一层上