U途骑士
- UID99831
- 粉丝1
- 关注0
- 发帖数1
- 铜币12枚
- 威望12点
- 贡献0点
|
楼主#
更多
发布于:2015-01-14 02:48
[tr][td]时尚的CSS3进度条先看效果图,非常漂亮吧: 图片:stylish-css3-progress-bars.png demo:http://www.css88.com/demo/css3-progress-bars/ 英文原文:http://www.red-team-design.com/stylish-css3-progress-bars HTML代码:HTML代码比较简单 [table] [tr] [td] 1 2 3 [/td] [td] <span class="sc2"> <span class="sc2"><span class="kw2"span/span span class="kw3"style/spanspan class="sy0"=/spanspan class="st0""width: 40%"/span> <span class="sc2"> [/td][/tr][/table] [*].progress-bar – 定义进度栏的常规样式。 [*].blue – 定义进度条的风格,这里是蓝色的 [*].stripes – 当前进度的动画类型。 [*]span – 填充进度条。内联设置的宽度,0%-100%,进度条的宽度。
CCS代码:图片:stylish-css3-progress-bars.png 添加颜色,进度条风格:条纹样式 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
| .stripes span { -webkit-background-size: 30px 30px; -moz-background-size: 30px 30px; background-size: 30px 30px; background-image: -webkit-gradient(linear, left top, right bottom, color-stop(.25, rgba(255, 255, 255, .15)), color-stop(.25, transparent), color-stop(.5, transparent), color-stop(.5, rgba(255, 255, 255, .15)), color-stop(.75, rgba(255, 255, 255, .15)), color-stop(.75, transparent), to(transparent)); background-image: -webkit-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -moz-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -ms-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: -o-linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent); background-image: linear-gradient(135deg, rgba(255, 255, 255, .15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, .15) 50%, rgba(255, 255, 255, .15) 75%, transparent 75%, transparent);
-webkit-animation: animate-stripes 3s linear infinite; -moz-animation: animate-stripes 3s linear infinite; }
@-webkit-keyframes animate-stripes { 0% {background-position: 0 0;} 100% {background-position: 60px 0;} }
@-moz-keyframes animate-stripes { 0% {background-position: 0 0;} 100% {background-position: 60px 0;} }
|
图片:stylish-css3-progress-bars.png 闪烁样式:图片:stylish-css3-progress-bars.png 发光样式:在不支持css3的浏览器下的表现: 图片:stylish-css3-progress-bars.png [/td][/tr]
|