您的位置:首页 > 移动开发

Hbuilder开发HTML5 APP之创建子页面

2015-12-11 14:41 603 查看
折腾了好久,终于看明白怎么创建了:

1.创建个html5的mui页面,在其初始化方法中:

mui.init({

subpages:[{
id:"list",
url:"listx.html",
styles:{
top:'45px',
bottom:0
}
}]
});

这里注意:subpages是个Array对象,意味着它可以创建多个子页,

2.子页最好

<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.min.css">

3.测试时一定要自动关闭splashscreen
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: