首页
网页制作
网络编程
脚本专栏
数据库
网站运营
网络安全
平面设计
CMS教程
搜索
建站极客
网页制作
CSS
正文
纯css制作的漂亮好看的进度条
所属分类:
网页制作
/
CSS
阅读数: 572
收藏 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>
提示:您可以先修改部分代码再运行
睡觉去喽~
更多精彩内容
其他人还在看
Opera中国的WEB标准课程
网页制作Webjx文章简介:在这篇文章里,我要向大家介绍我和其他很多人花费数月时间开发的一个课程——Web标准课程,该课程旨在向大家提供Web设计和开发的坚实基础,无论读者是谁,此教程完全免费、可访问,并且不需要预备知识。当然,我主要还
评论 0
收藏 0
赞 0
分享
CSS样式表渐进增强的基本概念
网页制作Webjx文章简介:如果你挠着头想弄清楚优雅降级和渐进增强的区别,我告诉你,这是视角问题。优雅降级和渐进增强都考虑网站在各种设备的各种浏览器上如何良好运转。两者区别的关键在于它们各自关注的焦点,以及这种关注对工作流程的影响
评论 0
收藏 0
赞 0
分享
简单介绍Web Developer插件制作网页
网页制作Webjx文章简介:Firefox浏览器是一个良好支持W3C标准的开放源代码的浏览器,拥有Linux/Windows/Mac版本。因为Firefox浏览器良好支持W3C标准,所以使用Firefox来调试网页是非常好的。 Firefox浏览器是
评论 0
收藏 0
赞 0
分享
CSS布局带来的巨大影响:CSS display属性值
网页制作Webjx文章简介:网页元素应用上那些与表格相关的display属性值后,能够模仿出与表格相同的特性。我将会在该文中给大家演示这种方法给CSS布局带来的巨大影响。 应原书编辑要求,先在文章顶部给出链接:《Everything You
评论 0
收藏 0
赞 0
分享
用div css模拟表格对角线
这只是探讨一种CSS模拟表格对角线的用法,实际在工作中可能觉得这样做有点小题大作,这不是本主题讨论的重点。如果对此深以为然的朋友,请一笑过之 首先声明: 这只是探讨一种CSS模拟表格对角线的
评论 0
收藏 0
赞 0
分享
IE Firefox在css中的差别 (部分)
1、单位问题 问题:任何距离的数值ie可以不加单位,ff必须要求写单位(0除外) 解决:写全单位如padding:0px; 2、水平居中 问题:div里的内容,ie默认为center,而ff默认left 解决:mairgin:0px auto; 3、高度问题
评论 0
收藏 0
赞 0
分享
不用js可以实现信息提示效果
[code] <style> body { font:verdena; font-size:14px; color:#000 } h1{ font:verdena; font-size:22px; color:#000 } h2{ font:verdena;
评论 0
收藏 0
赞 0
分享
CSS解决未知高度的垂直水平居中自适应问题
今天有人问起,晚上试着写出来,供参考; 以下代码兼容主流浏览器IE6、IE7、Firefox、Opera。 从最简单的开始………… 一、如何让一个DIV水平居中? 这个简单不作过多说明! [code] <st
评论 0
收藏 0
赞 0
分享
CSS cursor 属性 -- 鼠标指针样式效果
取值: [ [<uri> ,]* [ auto | crosshair | default | pointer | move | e-resize | ne-resize | nw-resize | n-resize | se-resize | sw-resize |
评论 0
收藏 0
赞 0
分享
css 简单区别ie6,ie7,firefox的写法
同一样式里可以这样 [code] margin:17px; FF +margin:17px; IE6 IE7 _margin:17px; IE6 [/code] 按这个顺序,刚好区分开三个浏览器
评论 0
收藏 0
赞 0
分享
查看更多
网络赚钱
更多
淘宝客服退款竟是诈骗新招 南昌网友17.5万元险被骗走
网上怎么赚钱 网络赚钱需要注意哪些东西
主观臆断,百度联盟审核的条件
一个既能省钱又能赚钱的公众号 你要错过么
企业网站通过流量变现有哪些关键的环节需要注意?
淘宝评级规则详解
站长故事
更多
论诺基亚之死!
揭秘互联网骗子怎么做到月入过万
浅析网站运营失败:你除了报怨还学会了什么
写给所有站长:其实没必要参加SEO培训
十年了!一个依靠设计师们热情支撑起的网站
写给那些曾经想转型却找不到方向的的站长