帖子
帖子
用户
博客
课程
显示全部楼层
6
帖子
0
勋章
1万+
Y币

videoPicture 模块的fixed 随页面滚动无效

[复制链接]
发表于 2020-11-3 11:56:22
  设置true 和false 视屏都是固定的 页面滚动视屏还是一动不动在原位置
6
帖子
0
勋章
1万+
Y币
  1. function openCarousel() {
  2.         videoPicture.openCarousel({
  3.             rect: {
  4.                 x: 0,
  5.                 y: 65,
  6.                 w: 700,
  7.                 h: 430,
  8.                 fixedOn: 'home_shop_details_win', //固定在名为'index_frm'的frame上
  9.                 // fixed:false //跟随网页滚动
  10.             },
  11.             data: [{
  12.                 imageUrl: 'http://img**.**/3332-1518523974124-26',
  13.                 type: 1, //1:视频 2:图片 如果是带视频的轮播。第一个必须是视频
  14.                 videoUrl: 'https://v-cdn**.**.cn/123468.mp4'
  15.             }, {
  16.                 imageUrl: 'http://img**.**/3332-1518523974126-29',
  17.                 type: 2,
  18.             }, {
  19.                 imageUrl: 'http://img**.**/3332-1518523974125-28',
  20.                 type: 2,
  21.             }, {
  22.                 imageUrl: 'http://img**.**/3332-1518523974125-27',
  23.                 type: 2,
  24.             }, {
  25.                 imageUrl: 'http://img**.**/3332-1518523974124-26',
  26.                 type: 2,
  27.             }, {
  28.                 imageUrl: 'http://img**.**/3332-1518523974124-26',
  29.                 type: 1,
  30.             }]
  31.         }, function(ret, err) {
  32.             alert(JSON.stringify(ret));
  33.         });
  34.     }
复制代码
6
帖子
0
勋章
1万+
Y币
216
帖子
5
勋章
5929
Y币
这个参数在rect外部吧?fixedOn: 'home_shop_details_win', //固定在名为'index_frm'的frame上                 // fixed:false //跟随网页滚动
6
帖子
0
勋章
1万+
Y币
52yaoer 发表于 2020-11-3 12:23
这个参数在rect外部吧?fixedOn: 'home_shop_details_win', //固定在名为'index_frm'的frame上             ...

好的  看错了 多谢
216
帖子
5
勋章
5929
Y币
ok
您需要登录后才可以回帖 登录

本版积分规则