更多>
最新下载
iPicker多级联动城市选择组件
jQuery iPicker城市选择插件,利用json动态调用城市地区数据,支持多级联动城市选择,设置获取值选择结果。这是一款简单快速的对 “省市区” 城市选择代码。ps:使用ajax本地要在localhost才能正常访问。
0
2026-01-27
24小时阅读排行榜
- 1 如何让页面加载逻辑具备容错能力:替代 window.onload 的现代方案
- 2 如何让页面加载逻辑具备容错能力并支持多 GeoGebra 小程序注入
- 3 如何在 React 中根据动态数据实时调整组件样式
- 4 GO项目中HTML无法加载外部JS文件的解决方案
- 5 如何让按钮内文本自动换行而不挤占右侧图标位置
- 6 如何在 ACF Post Object 字段中正确获取并显示关联产品的缩略图
- 7 如何在 React 中根据动态数据实时切换组件样式
- 8 如何在 Go Web 服务中正确加载外部 JavaScript 文件
- 9 如何正确对字典列表按键或值排序(解决 KeyError: 1 错误)
- 10 如何在 PHP 中从 DOMNodeList 中筛选指定标签名的节点
- 11 如何在 Go 中通过类型断言检测数值范围错误
- 12 Python 中的单元素解包语法:[b] = a 原理与最佳实践
- 13 如何在 Go 中通过类型断言检测数值越界错误
- 14 如何为页面中多个表单分别实现独立的“编辑”功能
- 15 如何实现网页加载时 GeoGebra 小程序注入的容错与可靠执行
更多>
最新教程
-
- Node.js 教程
- 16251 2025-08-28
-
- CSS3 教程
- 1546870 2025-08-27
-
- Rust 教程
- 23387 2025-08-27
-
- Vue 教程
- 25834 2025-08-22
-
- PostgreSQL 教程
- 22324 2025-08-21
-
- Git 教程
- 9291 2025-08-21
CSS3圆形进度条动画效果
<style>
body{background-color: #fff}
@-webkit-keyframes load {
0% {
stroke-dashoffset: 0;
}
}
@keyframes load {
0% {
stroke-dashoffset: 0;
}
}
.progress {
position: relative;
display: inline-block;
padding: 0;
text-align: center;
}
.progress > li {
display: inline-block;
position: relative;
text-align: center;
color: #93A2AC;
font-family: Lato;
font-weight: 100;
margin: 2rem;
}
.progress > li:before {
content: attr(data-name);
position: absolute;
width: 100%;
bottom: -2rem;
font-weight: 400;
}
.progress > li:after {
content: attr(data-percent);
position: absolute;
width: 100%;
top: 3.7rem;
left: 0;
font-size: 2rem;
text-align: center;
}
.progress svg {
width: 10rem;
height: 10rem;
}
.progress svg:nth-child(2) {
position: absolute;
left: 0;
top: 0;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.progress svg:nth-child(2) path {
fill: none;
stroke-width: 25;
stroke-dasharray: 629;
stroke: #fff;
opacity: .9;
-webkit-animation: load 10s;
animation: load 10s;
}
</style>
body{background-color: #fff}
@-webkit-keyframes load {
0% {
stroke-dashoffset: 0;
}
}
@keyframes load {
0% {
stroke-dashoffset: 0;
}
}
.progress {
position: relative;
display: inline-block;
padding: 0;
text-align: center;
}
.progress > li {
display: inline-block;
position: relative;
text-align: center;
color: #93A2AC;
font-family: Lato;
font-weight: 100;
margin: 2rem;
}
.progress > li:before {
content: attr(data-name);
position: absolute;
width: 100%;
bottom: -2rem;
font-weight: 400;
}
.progress > li:after {
content: attr(data-percent);
position: absolute;
width: 100%;
top: 3.7rem;
left: 0;
font-size: 2rem;
text-align: center;
}
.progress svg {
width: 10rem;
height: 10rem;
}
.progress svg:nth-child(2) {
position: absolute;
left: 0;
top: 0;
-webkit-transform: rotate(-90deg);
transform: rotate(-90deg);
}
.progress svg:nth-child(2) path {
fill: none;
stroke-width: 25;
stroke-dasharray: 629;
stroke: #fff;
opacity: .9;
-webkit-animation: load 10s;
animation: load 10s;
}
</style>
本站所有资源都是由网友投搞发布,或转载各大下载站,请自行检测软件的完整性!本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!如有侵权请联系我们删除下架,联系方式:admin@php.cn
