手机官网-落地页

master
“用lww 5 years ago
parent 28db83f646
commit 07a33ab051

@ -101,6 +101,7 @@ class HomeController extends Controller
public function promitionofregestion()
{
// 旧版兼容
A('Home')->landingPage();
die();
@ -171,9 +172,12 @@ class HomeController extends Controller
'dow_status',
'features',
'flooring_page_imgs',
'game_score',
'recommend_level',
'game_size',
'introduction'
];
$map = ['id' => intval($gameId)];
$game = M('game', 'tab_')->field($columns)->where($map)->find();
if ($game['sdk_version'] == 1 && $isIOS) {

@ -1,133 +1,294 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta itemprop="name" content="{$game['relation_game_name']}"/>
<meta itemprop="image" content="{$game['icon']}"/>
<meta name="description" itemprop="description" content="{$game['features']}"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
<script type="text/javascript" src="__JS__/jquery-1.11.1.min.js"></script>
<script type="text/javascript" src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script>
<link href="{:get_cover(C('CH_SET_ICO'),'path')}" type="image/x-icon" rel="shortcut icon">
<title>{$game['relation_game_name']}</title>
<link rel="stylesheet" href="__CSS__/20180207/promition.css">
<link rel="stylesheet" href="__CSS__/20180207/game.css">
<link href="__STATIC__/ios9/css/common.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="__CSS__/landing_page.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="__JS__/jquery-1.11.3.min.js"></script>
<script type="text/javascript" src="__JS__/getRem.js"></script>
<script type="text/javascript" src="__JS__/swiper.min.js"></script>
<link rel="stylesheet" type="text/css" href="__CSS__/swiper.min.css">
<link rel="stylesheet" type="text/css" href="__CSS__/reset.css">
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css">
<title>home</title>
</head>
<body class="main_bg" style="background-color: #0a0a0a;height: auto;">
<input type="hidden" name="title" value="{$game['relation_game_name']}">
<input type="hidden" name="icon" value="{$game['icon']}">
<input type="hidden" name="desc" value="{$game['features']}">
<input type="hidden" name="isIOS13" value="<?php if($isIOS13):?>1<?php else:?>0<?php endif;?>">
<?php if ($isWechat):?>
<?php if ($isAndroid):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/android-rule.png"></div>
<?php elseif ($isIOS):?>
<div class="bn-rule" style="display: none;"><img id="rule-img" src="__STATIC__/ios9/images/ios-rule.png"></div>
<?php endif;?>
<?php endif;?>
<div class="h_wrap">
<div id="data-2">
<volist name="game['flooring_page_imgs']" id="item">
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<a href="#" class="no-package"><img src="{$item}" style="width: 100%;"/></a>
<?php else :?>
<a href="javascript:;" class="down-link" down-link="{$downloadUrl}"><img src="{$item}" style="width: 100%;"/></a>
<?php endif ;?>
</volist>
<body>
<div class="home">
<div class="home-box">
<div class="heard">
<img src="{$game['icon']}" alt="">
<div class="right">
<div>{$game['relation_game_name']}</div>
<div>{$game['features']}</div>
<div>
<?php if ($downloadUrl == 'https://'.$_SERVER['HTTP_HOST']) :?>
<div class="download">免费安装</div>
<?php else :?>
<div class="download" onclick="location.href='{$downloadUrl}'">免费安装</div>
<?php endif ;?>
<img src="__IMG__/wenhao.png" class="doubt" alt="">
</div>
</div>
</div>
<div class="evaluate">
<div class="evaluate-box">
<div class="number">
<span>{$game['game_score']}</span>
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start.png" alt="">
</div>
</div>
<div class="grade">14.48K个评分</div>
</div>
<div class="evaluate-box">
<span>#{$game['recommend_level']}</span>
<div class="grade">网络游戏</div>
</div>
<div class="evaluate-box">
<span>16+</span>
<div class="grade">年龄</div>
</div>
</div>
<div class="slide_list">
<ul class="slide-box">
<volist name="game['flooring_page_imgs']" id="item">
<li class="slide-item">
<img src="{$item}" alt="">
</li>
</volist>
</ul>
</div>
<div class="synopsis">
<div>简介</div>
<div id="brief_introduction">{$game['features']}</div>
<div id="look_more">
<div class="bg-blur"></div>
<div class="more">查看更多</div>
</div>
</div>
<div class="appraisal">
<div class="title">评分及评论</div>
<div class="appraisal-box">
<div class="left">
<span>{$game['game_score']}</span>
<span>满分5分</span>
</div>
<div class="right">
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 2.77rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.24rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.06rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0.04rem;"></div>
</div>
</div>
<div class="start-number">
<div class="start">
<img src="__IMG__/start1.png" alt="">
</div>
<div class="strip">
<div style="width: 0;"></div>
</div>
</div>
<div class="mark">14.48K个评分</div>
</div>
</div>
</div>
<div class="device">
<div class="title">新功能</div>
<div class="soon-title">更新说明:</div>
<div class="del">1、优化用户体验</div>
</div>
<div class="information">
<div class="title">信息</div>
<div class="data-box">
<span>大小</span>
<div>{$game['game_size']}MB</div>
</div>
<div class="data-box">
<span>类别</span>
<div>游戏</div>
</div>
<div class="data-box">
<span>语言</span>
<div>英语,简体中文</div>
</div>
<div class="data-box">
<span>年龄分级</span>
<div>限16岁以上</div>
</div>
<div class="data-box">
<span>价格</span>
<div>免费</div>
</div>
<div class="privacy">隐私政策</div>
</div>
</div>
<script src="__STATIC__/layer/layer.js"></script>
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
<script type="text/javascript">
$('.down-link').on('click', function () {
if ($('.bn-rule').length > 0) {
$('.bn-rule').css('display','block')
$('.bn-rule').css('z-index','12')
return
}
if ($('input[name=isIOS13]').val() == 1) {
if (parseInt("{:I('get.status', 0)}") > 0) {
location.href = "{:U('iosDown',array('gid'=>$apply['game_id'],'pid'=>$apply['promote_id'],'status'=>1))}"
return
} else {
layer.confirm('请先到官网注册', {title: '提示'}, function () {
location.href = "/mobile.php?s=/User/login/pid/" + "{$apply.promote_id}" + "/gid/" + "{$apply.game_id}" + ".html"
})
return
}
}
var downLink = $(this).attr('down-link')
location.href = downLink
});
<div class="foot">
<div>
<div>闽ICP备19000000号-0</div>
<div>闽网文{2019}1554-099号</div>
</div>
<div>抵制不良游戏,拒绝盗版游戏。注意自我保护,谨防受骗上当。</div>
<div>适度游戏益脑,沉迷游戏伤身。合理安排时间,享受健康生活。</div>
</div>
</div>
$('.no-package').click(function() {
layer.msg('暂无下载', {
icon: 7,
time: 2000
})
})
$.ajax({
url: "{:U('Home/generateWechatSign')}",
dataType: 'json',
type: 'post',
data: {url: window.location.href},
success: function(response) {
if (response.status) {
wx.config({
// debug: true, // 开启调试模式,调用的所有api的返回值会在客户端alert出来若要查看传入的参数可以在pc端打开参数信息会通过log打出仅在pc端时才会打印。
appId: response.data.appid,
timestamp: response.data.time,
nonceStr: response.data.randStr,
signature: response.data.sign,
jsApiList: ['onMenuShareAppMessage', 'onMenuShareTimeline', 'onMenuShareQQ', 'onMenuShareWeibo', 'onMenuShareQZone']
})
var title = $('[name=title]').val();
var description = $('[name=desc]').val();
var icon = $('[name=icon]').val();
wxReady(title, description, icon)
}
}
<div class="window" style="display: none;">
<div class="containner">
<div class="containner-box">
<div class="text"> 购买至尊下载赠送限量至尊超级礼包价值100元</div>
<div class="text">• 至尊下载:永不闪退、不丢数据稳定有保障</div>
<div class="text"> • 同一设备安装一次可在一年内无限次下载重装</div>
<div class="blue-btn">¥10至尊下载</div>
<div class="gray-btn">普通下载</div>
</div>
</div>
</div>
<div class="second" style="display: none;">
<div class="second-box">
<div class="title">升级IOS9后游戏打不开怎么办</div>
<div class="carousel">
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>一、游戏安装完毕,点击游戏图标弹出如下提示:</div>
<div class="slide-img">
<img src="__IMG__/1.png" alt="" style=" height: 2.86rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>二、进入[设置] - [通用] - [描述文件]:找到对应证书名称</div>
<div class="slide-img">
<img src="__IMG__/2.png" alt="" style="height: 2.75rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>三、信任当前证书</div>
<div class="slide-img">
<img src="__IMG__/3.png" alt="" style="height: 2.06rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>四、下载过程中若出现以下情况,请检查网络和内存再次尝试下载</div>
<div class="slide-img">
<img src="__IMG__/4.png" alt="" style="height: 2.88rem;">
<img src="__IMG__/box-scroll.png" alt="" class="case">
</div>
</div>
</div>
<div class="swiper-slide">
<div class="swiper-slide-box">
<div>五、如果您已验证并正常体验游戏,一段时间后,点击游戏图标再次出现信任提示且无法信任时,请卸载游戏包,重新安装游戏验证</div>
</div>
</div>
</div>
<!-- Add Pagination -->
<div class="swiper-pagination"></div>
</div>
</div>
<div class="blue-btn">点我去信任</div>
</div>
</div>
</body>
</html>
<script>
$(function(){
if ($("#brief_introduction").length<80) {
$("#look_more").hide();
}
$(".more").click(function(){
$("#look_more").hide();
$("#brief_introduction").css("overflow", "visible");
});
function wxReady(title, description, img) {
wx.ready(function () {
wx.onMenuShareAppMessage({
title: title,
desc: description,
link: window.location.href,
imgUrl: img,
type: '',
dataUrl: ''
});
wx.onMenuShareTimeline({
title: title,
link: window.location.href,
imgUrl: img
});
wx.onMenuShareQQ({
title: title,
desc: description,
link: window.location.href,
imgUrl: img
});
wx.onMenuShareWeibo({
title: title,
desc: description,
link: window.location.href,
imgUrl: img
});
wx.onMenuShareQZone({
title: title,
desc: description,
link: window.location.href,
imgUrl: img
});
function swiperGet(){
var swiper = new Swiper('.swiper-container', {
loop: true,
// autoplay: img > 1,
pagination: {
el: '.swiper-pagination',
clickable: true,
},
autoplay: {
delay: 3000,
stopOnLastSlide: false,
disableOnInteraction: false,
},
});
}
</script>
</body>
</html>
};
swiperGet();
$(".download").click(function(){
$(".window").show();
document.body.style.overflow = 'hidden';
});
$(".window").click(function(){
$(".window").hide();
document.body.style.overflow = 'auto';
});
$(".gray-btn").click(function(){
event.stopPropagation();
$(".second").show();
swiperGet();
document.body.style.overflow = 'hidden';
$(".window").hide();
})
$(".second").click(function(){
$(".second").hide();
document.body.style.overflow = 'auto';
})
$(".doubt").click(function(){
$(".second").show();
document.body.style.overflow = 'hidden';
swiperGet();
})
})
</script>

@ -0,0 +1,445 @@
.home{
width: 100%;
font-family:PingFang SC;
}
.home-box{
padding: 0.5rem 0.37rem 0 0.31rem;
}
.heard{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.heard>img{
width: 2.5rem;
height: 2.5rem;
}
.heard>.right{
margin-left: 0.3rem;
}
.heard>.right>div:first-child{
font-size:0.4rem;
font-weight:500;
color:rgba(41,41,41,1);
}
.heard>.right>div:nth-child(2){
overflow: hidden;
text-overflow:ellipsis;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
font-size: 0.28rem;
color: #A9A9A9;
margin-top: 0.23rem;
}
.heard>.right>div:nth-child(3){
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.32rem;
}
.heard>.right>div:nth-child(3) .download{
width: 1.8rem;
height: 0.6rem;
background:rgba(34,129,245,1);
border-radius:0.3rem;
color:#fff ;
font-size: 0.28rem;
font-weight: 400;
text-align: center;
line-height: 0.6rem;
}
.heard>.right>div:nth-child(3) >img{
width: 0.6rem;
height: 0.6rem;
}
.evaluate{
font-size: 0.32rem;
color: #757575;
font-weight: bold;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 0.33rem;
}
.evaluate .number{
display: flex;
align-items: center;
}
.evaluate .start{
display: flex;
align-items: center;
margin-left: 0.32rem;
}
.evaluate .start>img{
width: 0.3rem;
height: 0.3rem;
}
.evaluate-box{
display: flex;
flex-direction: column;
}
.evaluate-box:last-child,.evaluate-box:nth-child(2){
align-items: center;
justify-content: center;
}
.evaluate-box .grade{
margin-top: 0.19rem;
font-size: 0.24rem;
color: #D3D3D3;
font-weight: 400;
}
.slide_list{
width: 100%;
margin-top:0.4rem;
padding-bottom: 0.39rem;
border-bottom: 1px solid #DEDEDE;
}
.slide-box{
display: -webkit-box;
overflow-x: auto;
/*适应苹果*/
-webkit-overflow-scrolling:touch;
font-size: 0.2rem;
font-size: 100%;
font-weight: normal;
margin: 0;
padding: 0;
}
.slide-item{
width: 4.4rem;
/* height: 6.22rem; */
margin-right: 30px;
list-style: none;
}
.slide-item >img{
width: 100%;
height: 100%;
}
/*隐藏掉滚动条*/
.slide-box::-webkit-scrollbar {
display: none;
}
.synopsis{
margin-top: 0.41rem;
padding-bottom: 0.38rem;
border-bottom: 1px solid #DEDEDE;
}
.synopsis>div:first-child{
font-size:0.4rem;
font-weight:700;
color:rgba(41,41,41,1);
margin-bottom: 0.41rem;
}
.synopsis>div:nth-child(2){
font-weight:400;
color:rgba(41,41,41,1);
line-height:0.4rem;
font-size: 0.28rem;
overflow: hidden;
text-overflow:ellipsis;
display: -webkit-box;
-webkit-line-clamp: 5;
-webkit-box-orient: vertical;
padding-bottom: 20px;
}
.synopsis>div:last-child{
position: relative;
margin-top: -0.4rem;
}
.synopsis>div:last-child .bg-blur{
background-color: #fff;
-webkit-filter:blur(0.2rem);
filter:blur(0.2rem);
width: 100%;
height: 1rem;
}
.more{
position: absolute;
top: 0.6rem;
left: 50%;
margin-left: -0.7948rem;
font-size: 0.36rem;
color: #2281F5;
/* background-color: #fff; */
}
.appraisal{
margin-top: 0.38rem;
}
.appraisal .title{
font-size:0.4rem;
font-weight:700;
color:rgba(41,41,41,1);
}
.appraisal-box{
display: flex;
align-items: flex-end;
justify-content: space-between;
margin-top: 0.4rem;
padding-bottom: 0.39rem;
border-bottom: 1px solid #DEDEDE;
}
.appraisal-box .left{
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.appraisal-box .left>span:first-child{
font-size: 1.2rem;
font-weight: 800;
color: #4B4C50;
}
.appraisal-box .left>span:last-child{
font-size: 0.28rem;
color: #4B4C50;
font-weight: 500;
}
.appraisal-box .right{
display: flex;
align-items: flex-end;
flex-direction: column;
justify-content: flex-end;
}
.appraisal-box .right>.start-number{
display: flex;
align-items:center;
justify-content: flex-end;
margin-bottom: 0.06rem;
}
.appraisal-box .right>.start-number .start{
display: flex;
align-items: center;
}
.appraisal-box .right>.start-number .start>img{
width: 0.16rem;
height: 0.16rem;
}
.appraisal-box .right>.start-number .strip{
width: 3rem;
height: 0.04rem;
background-color: #E0E0E0;
position: relative;
margin-left: 0.33rem;
}
.appraisal-box .right>.start-number .strip>div{
position: absolute;
top: 0;
left: 0;
height: 100%;
background-color: #4B4C50;
}
.appraisal-box .right>.mark{
font-size:0.24rem;
font-weight:400;
color:rgba(75,76,80,1);
margin-top: 0.26rem;
}
.device{
margin-top: 0.4rem;
padding-bottom: 0.4rem;
border-bottom: 1px solid #DEDEDE;
}
.device .title{
font-size:0.4rem;
font-weight:500;
color:rgba(41,41,41,1);
}
.device .soon-title{
margin-top: 0.4rem;
font-size: 0.28rem;
color: #292929;
}
.device .del{
font-size: 0.28rem;
color: #292929;
}
.information{
margin-top: 0.39rem;
}
.information .title{
font-size:0.4rem;
font-weight:500;
color:rgba(41,41,41,1);
margin-bottom: 0.52rem;
}
.information .data-box{
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding-bottom: 0.3rem;
border-bottom: 1px solid #DEDEDE;
margin-bottom: 0.29rem;
}
.information .data-box>span{
font-size: 0.24rem;
color: #A9A9A9;
font-weight: 400;
}
.information .data-box>div{
font-size: 0.24rem;
color: #292929;
font-weight: 400;
}
.privacy{
font-size: 0.24rem;
color: #292929;
font-weight: 400;
}
.foot{
background-color: #101010;
width: 100%;
padding: 0.29rem 0 0.24rem 0;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: 0.2rem;
color: #D3D3D3;
margin-top: 0.92rem;
}
.foot div:first-child{
display: flex;
align-items: center;
color: #D3D3D3;
font-weight:400;
font-size: 0.24rem;
}
.foot div:first-child>div{
font-size: 0.24rem;
}
.foot div:first-child>div:first-child{
margin-right: 0.5rem;
}
.foot div:nth-child(2){
margin-top: 0.18rem;
margin-bottom: 0.18rem;
}
.window{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background:rgba(0,0,0,0.6);
}
.containner{
width: 5.50rem;
height: 7.32rem;
background: url(../images/bg.png) no-repeat;
background-size: 100% 100%;
display: flex;
justify-content: flex-end;
}
.containner-box{
padding: 0 0.39rem 0.15rem 0.36rem;
display: flex;
flex-direction: column;
align-items: center;
justify-content: flex-end;
}
.containner-box .text{
font-size:0.24rem;
font-weight:400;
color:rgba(41,41,41,1);
line-height:0.36rem;
}
.blue-btn{
width: 4.58rem;
height:0.98rem;
background: url(../images/btn-blue.png) no-repeat;
background-size: 100% 100%;
font-size:0.28rem;
font-weight:400;
color:rgba(255,255,255,1);
text-align: center;
line-height: 0.86rem;
margin: 0.15rem 0;
}
.gray-btn{
width: 4.58rem;
height:0.98rem;
background: url(../images/btn-gray.png) no-repeat;
background-size: 100% 100%;
font-size:0.28rem;
font-weight:400;
color:rgba(255,255,255,1);
text-align: center;
line-height: 0.86rem;
}
.second{
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
background:rgba(0,0,0,0.6);
}
.second-box{
width: 5.50rem;
height: 7.4rem;
border-radius:0.3rem;
background-color: #fff;
display: flex;
flex-direction: column;
align-items: center;
}
.second-box .title{
border-top-left-radius: 0.3rem;
border-top-right-radius: 0.3rem;
height: 1rem;
width: 100%;
line-height: 1rem;
background-color: #489EF6;
font-size: 0.32rem;
font-weight: 500;
text-align: center;
color: #fff;
}
.carousel{
width: 100%;
margin-top: 0.3rem;
}
.swiper-container{
padding-bottom: 0.6rem;
}
.swiper-slide{
width: 100%;
}
.swiper-slide-box{
padding: 0 0.5rem;
}
.swiper-slide-box>div:first-child{
margin-bottom: 0.3rem;
font-size:0.28rem;
font-weight:400;
color:rgba(41,41,41,1);
line-height:0.36rem;
}
.swiper-slide-box>.slide-img{
width: 100%;
position: relative;
font-size: 0.2rem;
}
.swiper-slide-box>.slide-img .case{
position: absolute;
right: 0;
top: -0.18rem;
width: 0.8rem;
height: 0.8rem;
}
.swiper-slide-box>.slide-img>img:first-child{
width: 100%;
}
.swiper-container-horizontal>.swiper-pagination-bullets{
bottom: -9px !important;
}

@ -0,0 +1,28 @@
html,
body {
width: 100%;
/* font-size: calc(266.67% + 57.3333 * (100vw - 320px) / 430); */
}
/*清除一些默认样式*/
html,
body {
margin: 0;
padding: 0;
}
img{border:0;}
a{text-decoration:none; color:#000; outline:none;}
a:hover{text-decoration:none;}
em,strong,i{font-style:normal;}
h1,h2,h3,h4,h5,h6,span,strong,i{font-size:100%;font-weight:normal;margin: 0;padding: 0;}
.trans {
-webkit-transition: all 0.3s linear;
-moz-transition: all 0.3s linear;
-ms-transition: all 0.3s linear;
transition: all 0.3s linear;
}
.clearfix {*zoom:1;}
.clearfix:after {content:'\200B';clear:both;display:block;height:0px}
/* html{-webkit-tap-highlight-color:transparent;} */

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 157 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 134 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 722 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 555 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 136 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@ -0,0 +1,20 @@
function getRem(pwidth,prem){
var html = document.getElementsByTagName("html")[0];
var oWidth = document.body.clientWidth || document.documentElement.clientWidth;
//var oHeight = document.body.clientHeight || document.documentElement.clientHeight;
// if (oWidth >= pwidth) {
// oWidth = pwidth;
// }
// if (oWidth > oHeight) {
// oWidth = oHeight
// }
var size=oWidth/pwidth*prem;
html.style.fontSize = size + "px";
}
$(document).ready(function(){
//画布、字体大小设定
getRem(750,100);
$(window).resize(function() {
getRem(750,100);
})
});

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save