分享web开发知识

注册/登录|最近发布|今日推荐

主页 IT知识网页技术软件开发前端开发代码编程运营维护技术分享教程案例
当前位置:首页 > 网页技术

css上传图片中等待不可点击效果

发布时间:2023-09-06 02:02责任编辑:沈小雨关键词:上传图片
<!DOCTYPE html><html><head> ???<title>上传中</title> ???<style type="text/css">.dong-hua { ???position: fixed; ???left: 0; ???top: 0; ???z-index: 10; ???width: 100%; ???height: 100%; ???background: rgba(0, 0, 0, 0.7); ???color: #ffffff; ???font-size: 50px;}.dong-hua-chuan { ???text-align: center; ???font-size: 26px; ???margin-top: 330px; ???color: #ffffff;}.loader-05 { ???width: 1em; ???height: 1em; ???border: .2em solid transparent; ???border-top-color: currentcolor; ???border-radius: 50%; ???-webkit-animation: 1s loader-05 linear infinite; ???animation: 1s loader-05 linear infinite; ???position: relative; ???display: block; ???margin: 0 auto; ???margin-top: 15px;}.loader-05:before { ?content: ‘‘; ?display: block; ?width: inherit; ?height: inherit; ?position: absolute; ?top: -.2em; ?left: -.2em; ?border: .2em solid currentcolor; ?border-radius: 50%; ?opacity: .5;}@-webkit-keyframes loader-05 { ?0% { ???-webkit-transform: rotate(0deg); ???transform: rotate(0deg); ?} ?100% { ???-webkit-transform: rotate(360deg); ???transform: rotate(360deg); ?}}@keyframes loader-05 { ?0% { ???-webkit-transform: rotate(0deg); ???transform: rotate(0deg); ?} ?100% { ???-webkit-transform: rotate(360deg); ???transform: rotate(360deg); ?}} ???</style></head><body> ???????????<div class="dong-hua"> ???????????????<p class="dong-hua-chuan">上传中</p > ???????????????<div class="loader-05"> ???????????????</div> ???????????</div></body></html>

//默认给.dong-hua加上display:none;属性,源代码中没加,然后放入静态页中任意位置。点击上传按钮时将display改为block,然后上传结束

status返回200时将display改为none即可。

css上传图片中等待不可点击效果

原文地址:https://www.cnblogs.com/SimonHu1993/p/9256802.html

知识推荐

我的编程学习网——分享web前端后端开发技术知识。 垃圾信息处理邮箱 tousu563@163.com 网站地图
icp备案号 闽ICP备2023006418号-8 不良信息举报平台 互联网安全管理备案 Copyright 2023 www.wodecom.cn All Rights Reserved