【发布时间】:2022-07-19 21:41:17
【问题描述】:
我有一个加载器(当有长时间运行的 ajax 请求时显示)
.modal {
display: none;
position: fixed;
z-index: 1000;
top: 0;
left: 0;
height: 100%;
width: 100%;
background: rgba( 255, 255, 255, .8 )
/*url('FhHRx.gif')*/
url('logotip1.png')
50% 50%
no-repeat;
}
/* When the body has the loading class, we turn
the scrollbar off with overflow:hidden */
body.loading .modal {
overflow: hidden;
}
/* Anytime the body has the loading class, our
modal element will be visible */
body.loading .modal {
display: block;
}
<div class="modal"><!-- Place at bottom of page --></div>
如何使用 css 使 url('logotip1.png') 旋转?
我不想创建 GIF 或其他东西。
我如何在这个模态屏幕的中间添加文本?
【问题讨论】:
标签: javascript html css loading