fullpage.js的scrollOverflow插件在jsfidde或我的网站上不起作用。
简单的jsfiddle隔离复制。
使用StackOverflow的代码段可以使用相同的代码。
$(document).ready(function() {
$("#fullpage").fullpage({
scrollOverflow: true
});
});
<head>
<link href="https://www.victorwesterlund.se/src/lib/fullpage.js/dist/jquery.fullPage.min.css" rel="stylesheet" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://www.victorwesterlund.se/src/lib/fullpage.js/vendors/scrolloverflow.min.js"></script>
<script src="https://www.victorwesterlund.se/src/lib/fullpage.js/dist/jquery.fullPage.min.js"></script>
</head>
<body>
<div id="fullpage">
<div class="section">
<h1>Lorem ipsum dolor sit amet, cotetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
</h1>
</div>
<div class="section">
<h1>Lorem ipsum dolor sit amet, cotetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
</h1>
<h1>Lorem ipsum dolor sit amet, cotetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
</h1>
<h1>Lorem ipsum dolor sit amet, cotetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
</h1>
<h1>Lorem ipsum dolor sit amet, cotetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna
</h1>
</div>
</div>
</body>
最佳答案
确保:
使用latest scrolloverflow version(0.0.5)
使用the latest fullPage.js version 2.9.6
使用scrollOverflow: true
您的演示已更新:
https://jsfiddle.net/yL9da6mz/3/
关于jquery - 简单的fullpage.js scrollOverflow问题,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/48338668/