jqueryui tabs : is it possible to keep the navigation tabs visible when content is scrolled vertically?

好久不见. 提交于 2019-12-11 02:34:07

问题


My jqueryui tab-set consists of several pages of fairly lengthy content -- the user must scroll vertically to move through each document. Here's a simplified version:

 /MAIN TEXT\  /END-NOTES\
 =============================

 blah blah blah
 .
 .
 . (lots more text)
 .
 the end

If the user is reading through the main text, and has scrolled down, the navigation tabs scroll out out view. If the user then wishes to consult an end-note, the user must scroll back to the top of the document in order to make the navigation tabs visible so he can click on the END-NOTES tab. I would like to keep the navigation tabs visible at all times, even when the content is being scrolled vertically, so the nav-tabs appear to "float" at the top of the page. Is this feasible using the jqueryui tabs plugin?

Thanks


回答1:


I believe you could do it by wrapping the tab content DIVs with a DIV that has a fixed height and have a overflow: scroll; style on it.



来源:https://stackoverflow.com/questions/3123990/jqueryui-tabs-is-it-possible-to-keep-the-navigation-tabs-visible-when-content

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!