【问题标题】:Fullpage.js disable on mobile/below given pixels?Fullpage.js 在移动设备上禁用/低于给定像素?
【发布时间】:2017-10-21 21:41:27
【问题描述】:

https://alvarotrigo.com/fullPage/

我已经尝试过这样的代码,但遗憾的是它不起作用。我想在 976px 之后为移动用户禁用它。

<script>
if (screen && screen.width > 768) {
document.write('<script type="text/javascript" src="http://your-file-path/fullpage.js"><\/script>');
}
</script>

【问题讨论】:

    标签: javascript html css responsive fullpage.js


    【解决方案1】:

    只需将responsiveWidthresponsiveHeight 选项与fp-auto-height-responsive 结合使用即可。

    the fullPage.js docs 中阅读有关所有这些选项的更多信息或查看this codepen

    【讨论】:

      猜你喜欢
      • 2014-04-22
      • 1970-01-01
      • 2019-01-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-05-07
      • 2014-07-24
      • 2017-09-27
      相关资源
      最近更新 更多