jqueryui tabs:当内容垂直滚动时是否可以保持导航选项卡可见?
我的 jqueryui 选项卡集由几页相当长的内容组成——用户必须垂直滚动才能浏览每个文档。这是一个简化版本:
/MAIN TEXT\ /END-NOTES\
=============================
blah blah blah
.
.
. (lots more text)
.
the end
如果用户正在阅读主要文本并向下滚动,则导航选项卡将滚动出视图。如果用户随后希望查阅尾注,则用户必须滚动回文档顶部以使导航选项卡可见,以便他可以单击“END-NOTES”选项卡。我希望保持导航选项卡始终可见,即使内容垂直滚动也是如此,因此导航选项卡似乎“浮动”在页面顶部。使用 jqueryui tabs 插件是否可行?
谢谢
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
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您可以通过使用具有固定高度并具有
overflow:scroll;
样式的DIV
包装选项卡内容DIV
来实现此目的在它上面。I believe you could do it by wrapping the tab content
DIV
s with aDIV
that has a fixed height and have aoverflow: scroll;
style on it.