首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >简单fullpage.js scrollOverflow问题

简单fullpage.js scrollOverflow问题
EN

Stack Overflow用户
提问于 2018-01-19 10:13:00
回答 1查看 717关注 0票数 2

scrollOverflow插件的fullpage.js不工作在jsfidde或我的网站。

简单小提琴分离繁殖。

相同的代码使用StackOverflow的代码片段工作。

代码语言:javascript
复制
$(document).ready(function() {
  $("#fullpage").fullpage({
    scrollOverflow: true
  });
});
代码语言:javascript
复制
<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>

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-02-05 12:50:49

确保:

您的演示更新:https://jsfiddle.net/yL9da6mz/3/

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/48338668

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档