h5页⾯跳转浏览器在中点击链接直接跳转到⼿机默认浏览
器代码实现
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title></title>
<script type="text/javascript">
document.addEventListener('plusready', function() {
//console.log("所有plus api都应该在此事件发⽣后调⽤,否则会出现plus is undefined。")
});
</script>
<style>
* {
padding: 0;
margin: 0;
}
a {
display: block;
width: 6.88rem;
height: 2.5rem;
background: linear-gradient(135deg, #FF374E 0%, #C92B3E 100%);
opacity: 1;
border-radius: 2rem;
text-decoration: none;
text-align: center;
line-height: 2.5rem;
color: #FFFFFF;
}
.wxtip {
background: rgba(0, 0, 0, 0.8);
text-align: center;
position: fixed;
left: 0;
top: 0;
width: 100%;
height: 100%;
z-index: 998;
display: none;
}
.wxtip-icon {
width: 52px;
height: 67px;
display: block;
position: absolute;
right: 20px;
top: 20px;
}
.wxtip-txt {
margin-top: 107px;
color: #fff;
代码转换
font-size: 16px;
line-height: 1.5;
}
</style>
</head>
<body>
<div class="wrap">
<div>
<a href="chatting-app.oss-cn-chengdu.aliyuncs/ctzm.apk" id="JdownApp">⽴即下载</a>
</div>
</div>
<div class="wxtip" id="JweixinTip">

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。