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>
最佳答案
只需将 responsiveWidth
或 responsiveHeight
选项与 fp-auto-height-responsive
结合使用即可。
在 the fullPage.js docs 中了解有关所有这些选项的更多信息或参见this codepen .
关于javascript - Fullpage.js 在移动设备上禁用/低于给定像素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46868397/