html 帮助框架集

发布于 2024-09-02 07:30:16 字数 123 浏览 1 评论 0原文

我正在开发我的 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

━╋う一瞬間旳綻放 2024-09-09 07:30:16

听起来您想要的可能是围绕滚动内容的静态设计,对吗?

如果是这样,您实际上应该做的是使用所需的 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.

只是偏爱你 2024-09-09 07:30:16

不要使用框架!我知道这对你的问题来说是一个糟糕的答案,但相信我 - 很多人都会同意!

如果可以的话,请使用普通的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文