html 帮助框架集
我正在开发我的 html 项目,一切都很顺利。
现在我正在使用框架集做相同的项目,但我发现框架集中的页面不会作为整个页面滚动(您只能一次滚动每个框架)。
我该如何解决这个问题?
请帮忙
I'm working on my html project, and everything is going well.
Now I'm doing the same project with framesets, but I discovered that the page in a frame set won't scroll as a whole page (you can only scroll each frame at a time).
How can i solve this?
Please help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您想要的可能是围绕滚动内容的静态设计,对吗?
如果是这样,您实际上应该做的是使用所需的 DIV 布局制作一个页面(而不是框架集)(可以在此处找到一个很好的示例),然后让您的内容 div 使用允许其滚动的 CSS(例如
overflow:scroll;
)。希望这有帮助。
It sounds like what you want is perhaps a static design around your scrolling content, correct?
If so, what you should actually do is make a single page (not a frameset) with your desired DIV layout (a good example can be found here), and then have your content div use CSS that will allow it to scroll (e.g.
overflow:scroll;
).Hope this helps.
不要使用框架!我知道这对你的问题来说是一个糟糕的答案,但相信我 - 很多人都会同意!
如果可以的话,请使用普通的 CSS,不要使用框架。
另外,互联网上还漂浮着流氓同步滚动Javascript - 但我不会使用它们。关闭 Javascript 的人不会得到这种效果。
Don't use frames! I know this is a horrible answer to your question, but believe me - loads of peeps would agree!
If you can, use plain ol' CSS and NO FRAMES.
Also, there is rogue synchronised scrolling Javascripts floating around on the Interwebs - But I wouldn't use them. People who have Javascript off won't get that effect.