弹窗
html
<div class="mark"></div>
css
.mark {
position: fixed;
top: 80%;
left: 50%;
margin-left: -40%;
width: 80%;
height: 36px;
line-height: 36px;
text-align: center;
background-color: #000;
opacity: 0.8;
font-size: 14px;
color: #fff;
display: none;
}
js
$(".mark").html("暂未开放")
$('.mark').show().delay(1000).fadeOut();
js 书写一个简单弹窗
最新推荐文章于 2023-01-25 11:06:38 发布