api.openFrameGroup ({
name: 'group1',
background: '#fff',
scrollEnabled: true,//設置滾動
rect: {
x: 0,
y: 0,
w: 'auto',
h: 'auto'
},
index: 0,
frames: [{
name: 'guide1',
url: './html/guide1.html',
bgColor: './image/guide.png'//圖片直接作為背景即可
},{
name: 'guide2',
url: './html/guide2.html',
bgColor: './image/guide.png'
}]
}, function(ret, err){
});
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
打開的guide1和guide2樣式需要調壹下:
html,
body {
height: 100%;
background: rgba(0, 0, 0, 0);
}
1
2
3
4
5
可以在最後壹頁的body裏添加壹個按鈕去開啟應用。