[英]How to scroll div content by using fullpage.js
My page code looks like this: 我的页面代码如下所示:
<div id="wrap">
<div id="panel">
<div id="answerData">
<div id="bodyData">
----some contents here ----
</div>
</div>
</div>
</div>
The data got wrapped between bodyData are populated automatically, so I want to make these data scrollable when they are overflowed. 包裹在bodyData之间的数据将自动填充,因此我想使这些数据在溢出时可滚动。 And I added
我加了
<script>
$(document).ready(function () {
$('#wrap').fullpage();
})
</script>
below div section, but nothing happened, anyone can help me? 在div部分下面,但没有任何反应,有人可以帮助我吗? I followed a tutorial video, don't know how to initialize fullpage.
我看了一个教学视频,不知道如何初始化整页。
Check the fullPage.js docs where everything is explained in detail and with plenty of examples . 查看fullPage.js文档 ,其中详细说明了所有内容,并提供了许多示例 。
You are not following the required HTML structure which is the following: 您没有遵循以下必需的HTML结构:
<div id="fullpage">
<div class="section">Some section</div>
<div class="section">Some section</div>
<div class="section">Some section</div>
<div class="section">Some section</div>
</div>
You can also check this video tutorial . 您也可以查看此视频教程 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.