当前位置:网站首页>H5, add a mask layer to the page, which is similar to clicking the upper right corner to open it in the browser
H5, add a mask layer to the page, which is similar to clicking the upper right corner to open it in the browser
2022-07-02 11:52:00 【System. out. print】
Code implementation , You can directly copy the generation html Document presentation
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script src="http://libs.baidu.com/jquery/2.0.0/jquery.js"></script>
<title> mask </title>
</head>
<style>
.content{
width: 100%;
height: 100%;
background-color: red;
}
.show-mask-btn {
background: rgb(4, 208, 71);
padding: 5px 10px;
border-radius: 5px;
cursor: pointer;
}
.show-mask-btn p {
font-size: 12px;
font-weight: 400;
color: #ffffff;
}
.mask-box {
position: fixed;
min-height: 100vh;
background-color: rgba(0,0,0,.5);
opacity: 0.5;
display:none;
z-index: 999;
width: 100%;
}
.hint-txt {
width: 100%;
color: #ffffff;
text-align: center;
height: 35px;
line-height: 35px;
}
</style>
<body class="white-gradient-bg">
<!-- Mask / mask -->
<div class="mask-box" id="download-box">
<div class="hint-txt">1、 Click on the icon in the upper right corner </div>
<div class="hint-txt">2、 choice In the browser open </div>
</div>
<!-- Your content -->
<div class="content">
<div class="doshow-mask-btn" id="show-mask-btn">
<p> Click to view mask layer </p>
</div>
</div>
</body>
</html>
<script>
$('#show-mask-btn').click(function () {
$('.mask-box').css('display','block');
})
</script>Here are some things to pay attention to :
1、 mask div, Be sure to put it on the top of all elements . The following icon is an example of a red box

边栏推荐
- FLESH-DECT(MedIA 2021)——一个material decomposition的观点
- Summary of flutter problems
- b格高且好看的代码片段分享图片生成
- Implementation of address book (file version)
- map集合赋值到数据库
- Flesh-dect (media 2021) -- a viewpoint of material decomposition
- MySQL linked list data storage query sorting problem
- Never forget, there will be echoes | hanging mirror sincerely invites you to participate in the opensca user award research
- 微信小程序利用百度api达成植物识别
- RPA advanced (II) uipath application practice
猜你喜欢

The position of the first underline selected by the vant tabs component is abnormal

How to Easily Create Barplots with Error Bars in R

HOW TO EASILY CREATE BARPLOTS WITH ERROR BARS IN R

2022年遭“挤爆”的三款透明LED显示屏

GGHIGHLIGHT: EASY WAY TO HIGHLIGHT A GGPLOT IN R

Digital transformation takes the lead to resume production and work, and online and offline full integration rebuilds business logic

Amazon cloud technology community builder application window opens

BEAUTIFUL GGPLOT VENN DIAGRAM WITH R

HOW TO ADD P-VALUES ONTO A GROUPED GGPLOT USING THE GGPUBR R PACKAGE

文件操作(详解!)
随机推荐
Seriation in R: How to Optimally Order Objects in a Data Matrice
Tidb DM alarm DM_ sync_ process_ exists_ with_ Error troubleshooting
行業的分析
A white hole formed by antineutrons produced by particle accelerators
Some problems encountered in introducing lvgl into esp32 Arduino
可升级合约的原理-DelegateCall
Precautions for scalable contract solution based on openzeppelin
b格高且好看的代码片段分享图片生成
[multithreading] the main thread waits for the sub thread to finish executing, and records the way to execute and obtain the execution result (with annotated code and no pit)
Take you ten days to easily finish the finale of go micro services (distributed transactions)
GGPlot Examples Best Reference
Seriation in R: How to Optimally Order Objects in a Data Matrice
念念不忘,必有回响 | 悬镜诚邀您参与OpenSCA用户有奖调研
Amazon cloud technology community builder application window opens
Esp32 audio frame esp-adf add key peripheral process code tracking
【2022 ACTF-wp】
Enter the top six! Boyun's sales ranking in China's cloud management software market continues to rise
CMake交叉编译
Develop scalable contracts based on hardhat and openzeppelin (I)
Map set assignment to database