简体   繁体   English

带有ui-tabs问题的fullpage.js

[英]fullpage.js with ui-tabs issue

My usecase is as below - I have horizontal tabs on top (that uses jquery-ui - ui-tabs) 我的用例如下-我在顶部有水平选项卡(使用jquery-ui-ui-tabs)

First Second Third 第一第二第三

Each tab is a hyperlink. 每个选项卡都是一个超链接。 When "second" Tab is clicked it pulls up a page where I use the fullpage.js That page has 3 sections. 单击“第二个”选项卡时,它将弹出一个页面,其中我使用了fullpage.js。该页面包含3个部分。 The first section pulls up with the 3 tabs on the top. 第一部分在顶部带有3个选项卡。

When user is scrolling, the second section shows up with part of first section on top(that height kind of matches the tab height in first section) 当用户滚动时,第二部分显示在第一部分的顶部(该高度与第一部分中的制表符高度匹配)

I do have scrollOverflow:true. 我确实有scrollOverflow:true。

How do I fix that please. 我该如何解决。

It looks like this 看起来像这样 初始显示

滚动显示后

Add the following styles: 添加以下样式:

body{
    padding: 0;
    margin: 0;
}
#tabs{
    padding: 0;
}
#tabs ul{
    z-index: 999;
    position: fixed;
    width: 100%;
}
.ui-tabs .ui-tabs-panel {
    padding: 50px 0 0 0;
}

Demo online 在线演示

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM