简体   繁体   中英

html help frameset

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

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; ).

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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