• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com专业计算机教程网站
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure
您的位置:首页 > 网页设计 >CSS > 纯css制作的漂亮好看的进度条

纯css制作的漂亮好看的进度条

作者:佚名 字体:[增加 减小] 来源:互联网 时间:2017-08-06

本文主要包含css,进度条等相关知识,佚名 希望在学习及工作中可以帮助到您

效果
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">

您可能想查找下面的文章:

  • css小技巧
  • 各大网站CSS初始化代码
  • css权重问题
  • CSS实现鼠标上移图标旋转效果
  • 使用CSS3制作一个简单的进度条(demo)
  • 用纯CSS实现饼状Loading等待图效果
  • 利用CSS3伪元素实现逐渐发光的方格边框
  • CSS3实现内凹圆角的实例代码
  • 利用HTML5+CSS3实现3D转换效果实例详解
  • css3+伪元素实现鼠标移入时下划线向两边展开的效果

相关文章

  • 2017-08-06css实现div内图片上下左右居中
  • 2017-08-06CSS伪类对象before和after的用法实例详解
  • 2017-08-06CSS中的伪元素简介
  • 2017-08-06CSS如何美化被选中的文字
  • 2017-08-06利用纯CSS3实现tab选项卡切换示例代码
  • 2017-08-06表单元素与提示文字无法对齐的解决方法(input,checkbox文字对齐)
  • 2017-08-06Firefox专属hack的写法介绍
  • 2017-08-06在可编辑div中插入文字或图片解决思路与实现步骤
  • 2017-08-06IE6中的position:fixed定位兼容性写法分享
  • 2017-08-06CSS3中使用RGBa来调节透明度的教程

文章分类

  • html/xhtml
  • html5
  • CSS
  • XML/XSLT
  • Dreamweaver教程
  • Frontpage教程
  • 心得技巧
  • bootstrap
  • vue
  • AngularJS
  • HBuilder教程
  • css3
  • 浏览器兼容
  • div/css
  • 网页编辑器
  • axure

最近更新的内容

    • css ul li 的使用及浏览器兼容问题
    • IE7 float:left左浮动失效的解决方法
    • DIV+CSS 全屏垂直居中的一个办法
    • 在jsp修改CSS样式后没反应无效果的解决方法
    • 将ul+li 分两列显示(横向显示)的方法
    • 纯css3实现效果超级炫的checkbox复选框和radio单选框
    • 清除行内元素之间HTML空白的几种解决方案
    • 左侧固定宽度,右侧自适应宽度的CSS布局
    • CSS中overflow:scroll怎么设置只上下滚动而不左右滚动
    • CSS实现的一个简单时尚的左侧导航

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有