DOCTYPE html&g服务器托管网t;
html lang="en">
head>
meta charset="UTF-8" />
meta nam服务器托管网e="viewport" content="width=device-width, initial-scale=1.0" />
title>加载动画title>
style>
.loader {
width: 30px;
height: 30px;
border-radius: 50%;
border: 4px solid #f3f3f3;
border-top: 4px solid #3498db;
animation: spin 1s linear infinite;
margin: 0 auto;
}
@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.spin {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
margin: 50px;
width: 200px;
height: 200px;
border: 1px solid #999;
}
.spin span {
margin-top: 5px;
}
.container {
display: flex;
}
.dots {
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 200px;
margin: 50px;
border: 1px solid #999;
}
.dot {
width: 10px;
height: 10px;
background-color: #ccc;
border-radius: 50%;
margin: 0 3px;
opacity: 0.4;
animation: loading 1.2s infinite;
}
.dot:nth-child(1) {
animation-delay: 0.1s;
}
.dot:nth-child(2) {
animation-delay: 0.3s;
}
.dot:nth-child(3) {
animation-delay: 0.5s;
}
@keyframes loading {
0% {
transform: scale(1);
opacity: 0.4;
}
50% {
opacity: 1;
transform: scale(1.2);
}
100% {
opacity: 0.4;
transform: scale(1);
}
}
style>
head>
body>
div class="container">
div class="spin">
div class="loader">div>
span>加载中...span>
div>
div class="dots">
span class="dot">span>
span class="dot">span>
span class="dot">span>
div>
div>
body>
html>
页面效果:
服务器托管,北京服务器托管,服务器租用 http://www.fwqtg.net
相关推荐: 文心一言 VS 讯飞星火 VS chatgpt (32)– 算法导论5.2 4题
四、利用指示器随机变量来解如下的帽子核对问题(hat-heck problem):n位顾客,他们每个人给餐厅核对帽子的服务生一顶帽子。服务生以随机顺序将帽子归还给顾客。请问拿到自己帽子的客户的期望数是多少? 文心一言: 我们可以将这个问题转化为求解在指示器随机…