简体   繁体   English

fullPage.js 上的 `scrollOverflow:true` 时如何使用默认浏览器滚动条?

[英]How to use the default browser scrollbar when `scrollOverflow:true` on fullPage.js?

Is there a way to use the browser native scrollbar when scrollOverflow:true instead of the additional scrolloverflow.js file?有没有办法在scrollOverflow:true而不是额外的scrolloverflow.js文件时使用浏览器本机滚动条?

I want to use fullPage.js only on the home page of a WP site and I want all pages to have the default scrollbar.我只想在 WP 站点的主页上使用 fullPage.js,并且我希望所有页面都具有默认滚动条。

I managed to solve it by setting scrollOverflow:false (default value) and defining an extra container inside the desired fullpage section like this:我设法通过设置scrollOverflow:false (默认值)并在所需的整页部分定义一个额外的容器来解决它,如下所示:

<div id="fullpage">
  <div class="section">
    <div class="inner-section">...</div>
  </div>
  ...
</div>

CSS: CSS:

.inner-section {
    height: 100%;
    overflow-y: scroll;
}

This seems to work fine on desktop screens, but on mobile screens, there are problems with swiping.这在桌面屏幕上似乎工作正常,但在移动屏幕上,滑动有问题。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 fullPage.js scrollBar:true使浏览器随Deelay移动 - fullPage.js scrollBar: true making the browser move with deelay scrollOverflow / slimScroll在fullPage.js中无法正常工作 - scrollOverflow / slimScroll not working properly in fullPage.js 无法在移动设备上使用fullpage.js在scrollable部分下方的overflow:auto元素进行交互,scrollOverflow:true - Can't interact on mobile with overflow:auto element underneath scrollable section using fullpage.js, scrollOverflow:true fullpage.js-如果&#39;scrolloverflow&#39;设置为true,则无法向下滚动到下一部分 - fullpage.js - If 'scrolloverflow' is set to true can't scroll down to the next section 固定的标题块,在带有“ scrollOverflow:true”的fullPage.js节中滚动 - Fixed Header Blocks Scrolling through fullPage.js Sections with “scrollOverflow: true” 使用Fullpage.js和scrolloverflow.js禁用内容链接 - Disabled Content Links with Fullpage.js and scrolloverflow.js FullPage.js 中的慢滚动条 - Slow scrollbar in FullPage.js fullPage.js 使用 scrollOverflow 时不检测动态生成内容的高度 - fullPage.js not detecting height of dynamic generated content when using scrollOverflow 使用Scrolloverflow.js + Fullpage.js包装的内容 - Work with content wrapped with Scrolloverflow.js + Fullpage.js fullpage.js - 在mobile上设置responsiveWidth和scrollOverflow中断页面 - fullpage.js - setting responsiveWidth and scrollOverflow breaks page on mobile
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM