如何用CSS+HTML制作表单完成进度条效果
时间:2023-08-19 11:52:06浏览:2113
<style>
.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%);
}
</style>
<div class="progress">
<span class="orange" style="width: 14%;"></span>
</div>
上一篇:php识别翻转手机拍摄的颠倒图片
下一篇:使用JQuery获取被选中的checkbox的value值
- Linux文章
- PHP文章
- 随机文章
- Linux中的find(-atime...
- mysql的expire_logs_...
- PHP 扩展 libsodium s...
- Linux下利用find和cp实现筛...
- 使用mysqldump命令导出备份m...
- Linux系统如何设置开机自动运行脚...
- Linux上实现秒级执行的定时任务
- shell echo -e 颜色输出
- Linux下通过grep查找指定的进...
- 解决执行脚本报syntax erro...
发表评论
昵称: 验证码: