當前位置:編程學習大全網 - 網站源碼 - 想知道視頻引導頁具體怎麽實現?

想知道視頻引導頁具體怎麽實現?

方法可以用模塊去實現, 也可以用api自身的openFrameGroup來實現,

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裏添加壹個按鈕去開啟應用。

  • 上一篇:怎樣用 Python 寫壹個股票自動交易的程序
  • 下一篇:聊聊git中的四大對象
  • copyright 2024編程學習大全網