创建一个可以滚动离开页面的菜单框架
我目前有一个网站,其菜单位于左侧框架中,内容位于右侧框架中。我想将菜单框架移动到页面顶部(水平而不是垂直),但我希望菜单在大内容页面上滚动时向上移出可见页面,就好像菜单是内容的一部分一样。
注意:我不想在内容页面上呈现菜单,因为所有当前链接都针对特定的框架/窗口,并且我不想在每个请求上呈现菜单。
I currently have a site with a menu in a frame on the left and the content in a frame on the on the right. I want to move the menu frame to the top of the page (horizontal instead of vertical), but I want the menu to move up off the visible page when scrolling on a large content page, as though the menu was part of the content.
Note: I do not want to render the menu on the content page as all the current links target specific frames/windows and I would like to not have to render the menu on every request.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您询问是否可以将框架滚动到页面之外,那么确实可以。只需使用 IFrame 即可。 http://www.w3.org/TR/html4/present/frames.html
请注意,如果垂直框架中有很长的下拉菜单,它们可能会在高度有限的 iframe 中的水平“菜单”中被截断。
If you're asking whether it's possible to scroll a frame off the page, it is. Just use an IFrame. http://www.w3.org/TR/html4/present/frames.html
Just be aware that if you had lengthy dropdowns in your vertical frames, they may get truncated in a horizontal "menu" in an iframe of limited height.