问题描述
我正在开发一个网页,在其中我使用fancybox3 作为灯箱。在我自己的 CSS 中,我可以根据设备方向实现拇指面板的位置。我现在的问题是选项轴,它作为 JavaScript 调用的参数给出。根据方向更改此参数的最佳方法是什么?
thumbs: {
autoStart: false,hideOnClose: true,parentEl: ".fancybox-container",axis: "y" // <- This parameter x for portrait and y for landscape
},
有关详细信息,请参阅 https://fancyapps.com/fancybox/3/docs/#options。
下面是fancybox 3 的示例。底部的拇指面板适用于纵向,横向时应位于右侧
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)