Commit fa6c317d authored by 黄媛媛's avatar 黄媛媛

添加遮罩层

parent 58d3e895
...@@ -50,6 +50,14 @@ ...@@ -50,6 +50,14 @@
bottom: 4rem; bottom: 4rem;
width: 100%; */ width: 100%; */
} }
#tc{
position: fixed;
top: 0;
height: 100%;
background: rgba(0, 0, 0, 0.5);
width: 100%;
display: none;
}
</style> </style>
</head> </head>
...@@ -63,6 +71,7 @@ ...@@ -63,6 +71,7 @@
<img src="../images/dload_logo.png" alt=""> <img src="../images/dload_logo.png" alt="">
</div> </div>
</div> </div>
<div id="tc"></div>
</div> </div>
<script type="text/javascript" src="../js/jquery-1.10.2.js"></script> <script type="text/javascript" src="../js/jquery-1.10.2.js"></script>
<script type="text/javascript" src="../js/md5.js"></script> <script type="text/javascript" src="../js/md5.js"></script>
...@@ -74,6 +83,10 @@ ...@@ -74,6 +83,10 @@
<script> <script>
function downLoad(){ function downLoad(){
var ua = navigator.userAgent.toLowerCase();//获取判断用的对象
if (ua.match(/MicroMessenger/i) == "micromessenger") {//在微信中打开
$('#tc').css('display', 'block')
}
var u = navigator.userAgent, app = navigator.appVersion; var u = navigator.userAgent, app = navigator.appVersion;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器 var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //android终端或者uc浏览器
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端 var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment