简体   繁体   English

html帮助框架集

[英]html help frameset

I'm working on my html project, and everything is going well. 我正在处理我的html项目,并且一切进展顺利。

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 请帮忙

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 (eg overflow:scroll; ). 如果是这样,您实际上应该做的是制作具有所需DIV布局的单个页面(而不是框架集)( 可以在此处找到一个很好的示例 ),然后让您的content div使用CSS进行滚动(例如, overflow:scroll; )。

Hope this helps. 希望这可以帮助。

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. 如果可以,请使用普通的CSS和NO FRAMES。

Also, there is rogue synchronised scrolling Javascripts floating around on the Interwebs - But I wouldn't use them. 此外,Interweb上还漂浮着流氓同步滚动Javascript,但我不会使用它们。 People who have Javascript off won't get that effect. 禁用Java的人不会获得这种效果。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM