简体   繁体   English

在其他组件上可见的jquery-UI选项卡

[英]jquery-UI tabs visible on other components

I have used three divs. 我已经使用了三个div。 header, wrapper and footer respectively. 页眉,包装和页脚。 Header position is fixed. 标头位置是固定的。 Wrapper consists of few components, few are jqueryUI tabs. 包装器由很少的组件组成,很少有jqueryUI选项卡。 Now when I scroll down the page the wrapper along with all the contents start hiding as the position of header is fixed, strange is the UI tabs doesn't get hidden, instead they overlap and causing the design to fail, i tried adjusting the CSS for UI tabs, no use. 现在,当我向下滚动页面时,随着标题位置的固定,包装器以及所有内容开始隐藏,奇怪的是UI选项卡没有被隐藏,而是重叠并且导致设计失败,我尝试调整CSS对于UI标签,没有用。 I want the tabs also to go below the header, if this is possible if so how? 我希望标签也位于标题下方,如果可以的话,该怎么办?

Go into your page where the tabs are displayed, open up your view source and look at the z-index of the tabs. 进入显示选项卡的页面,打开视图源并查看选项卡的z索引。 Add this to your header's css class: 将此添加到标题的css类中:

.headerClass{
position:relative;
z-index: [insert a value higher than tabs];
}

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

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