利用html实现进度条效果的方法


本文摘自PHP中文网,作者V,侵删。

html代码:

1

2

3

<div class="progress"  style="height: 80px;line-height: 80px;">

    <span class="orange" style="width: 100%;"></span>

</div>

视频学习推荐:html视频教程

css代码:

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

.progress {

    height:10px;

    background:#ebebeb;

    border-left:1px solid transparent;

    border-right:1px solid transparent;

    border-radius:10px;

}

.progress > span {

    position:relative;

    float:left;

    margin:0 -1px;

    min-width:30px;

    height:10px;

    line-height:16px;

    text-align:right;

    background:#cccccc;

    border:1px solid;

    border-color:#bfbfbf #b3b3b3 #9e9e9e;

    border-radius:10px;

    background-image:-webkit-linear-gradient(top,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);

    background-image:-moz-linear-gradient(top,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);

    background-image:-o-linear-gradient(top,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);

    background-image:linear-gradient(to bottom,#f0f0f0 0%,#dbdbdb 70%,#cccccc 100%);

    -webkit-box-shadow:inset 0 1px rgba(255,255,255,0.3),0 1px 2px rgba(0,0,0,0.2);

    box-shadow:inset 0 1px rgba(255,255,255,0.3),0 1px 2px rgba(0,0,0,0.2);

}

.progress .orange {

    background:#FE8E01;

    border-color:#FE8E02 #FE8E02 #BF6B02;

    background-image:-webkit-linear-gradient(top,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);

    background-image:-moz-linear-gradient(top,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);

    background-image:-o-linear-gradient(top,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);

    background-image:linear-gradient(to bottom,#FEAA41 0%,#FE8E02 70%,#FE8E01 100%);

}

相关推荐:html教程

以上就是利用html实现进度条效果的方法的详细内容,更多文章请关注木庄网络博客

相关阅读 >>

Html中合并两个单元格应该使用的属性是什么

Html中行内元素与块级元素的区别是什么

怎么实现Html 可输入下拉菜单

Html的内联元素和块级元素有哪些不同

Html如何设置背景径向渐变

Html5 简介

关于Html操作滚动条的方法

Html是网页文件吗

Html中span怎么使用

怎么解决Html <a>标签中文乱码问题

更多相关阅读请进入《Html》频道 >>




打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...