css3实现了提交按钮等待打点循环效果:
本章节分享一段代码实例,它实现了提交按钮打点等待效果。
这样的效果是比较人性化的,可以让用户很容易的指导,网页是在工作中,只需要耐心等待就可以。
代码实例如下:
<!DOCTYPE html><html><head><meta charset=" utf-8"><meta name="author" content="http://www.softwhy.com/" /><title>蚂蚁部落</title><style type="text/css">.grebtn { display:inline-block; padding:0.25em 1.25em; border:1px solid; border-radius:2px; vertical-align:bottom; font-weight:inherit; border-color:#208000 #1F7F00; background-color:#289600; box-shadow:inset 0 0 1px rgba(255,255,255,.6), 0 1px #8DBF62; color:#fff; text-shadow:0 -1px #137900; text-decoration:none; }.dotting { display:inline-block; min-width:2px; min-height:2px; box-shadow:2px 0 currentColor, 6px 0 currentColor, 10px 0 currentColor; -webkit-animation:dot 4s infinite step-start both; animation:dot 4s infinite step-start both; *zoom: expression(this.innerHTML = '...'); /* IE7 */}.dotting:before { content: '...'; } /* IE8 */.dotting::before { content: ''; }:root .dotting { margin-right: 8px; } /* IE9+,FF,CH,OP,SF */ @-webkit-keyframes dot { 25% { box-shadow: none; } 50% { box-shadow: 2px 0 currentColor; } 75% { box-shadow: 2px 0 currentColor, 6px 0 currentColor; }}@keyframes dot { 25% { box-shadow: none; } 50% { box-shadow: 2px 0 currentColor; } 75% { box-shadow: 2px 0 currentColor, 6px 0 currentColor; }}</style><head></head><body><a href="javascript:" class="grebtn">订单提交中<span class="dotting"></span></a></body></html>原文地址是:http://www.softwhy.com/forum.php?mod=viewthread&tid=18233
更多内容可以参阅:http://www.softwhy.com/divcss/
HTML怎么学习?HTML怎么入门?HTML在哪学?HTML怎么学才快?不用担心,这里为大家提供了HTML速学教程(入门课程),有需要的小伙伴保存下载就能学习啦!
C++高性能并发应用_C++如何开发性能关键应用
Java AI集成Deep Java Library_Java怎么集成AI模型部署
Golang后端API开发_Golang如何高效开发后端和API
Python异步并发改进_Python异步编程有哪些新改进
C++系统编程内存管理_C++系统编程怎么与Rust竞争内存安全
Java GraalVM原生镜像构建_Java怎么用GraalVM构建高效原生镜像
Python FastAPI异步API开发_Python怎么用FastAPI构建异步API
C++现代C++20/23/26特性_现代C++有哪些新标准特性如modules和coroutines
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号