[]打包app后弹框:设置横竖屏错误
学习制作微信打飞机游戏。游戏为竖屏模式
代码里这样设置:
Laya.init(480,852, Laya.WebGL);
Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT;
Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL;
index.html中是这样的:
<head>
<meta charset='utf-8'/>
<title>www.layabox.com</title>
<meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'/>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='full-screen' content='true' />
<meta name='screen-orientation' content='portrait' />
<meta name='x5-fullscreen' content='true' />
<meta name='360-fullscreen' content='true' />
<meta http-equiv='expires' content='0' />
</head>
但是打出来的apk包在手机上运行时提示:
设置横竖屏错误,请在html页面meta中设置为竖屏portrait
请问下哪里配置的不对,谢谢拉!
代码里这样设置:
Laya.init(480,852, Laya.WebGL);
Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT;
Laya.stage.screenMode = Laya.Stage.SCREEN_VERTICAL;
index.html中是这样的:
<head>
<meta charset='utf-8'/>
<title>www.layabox.com</title>
<meta name='viewport' content='width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'/>
<meta name='apple-mobile-web-app-capable' content='yes' />
<meta name='full-screen' content='true' />
<meta name='screen-orientation' content='portrait' />
<meta name='x5-fullscreen' content='true' />
<meta name='360-fullscreen' content='true' />
<meta http-equiv='expires' content='0' />
</head>
但是打出来的apk包在手机上运行时提示:
设置横竖屏错误,请在html页面meta中设置为竖屏portrait
请问下哪里配置的不对,谢谢拉!
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
cuixueying
赞同来自: