Html frames are good choice for some scenarios on web content, especially simple content management.

My page contains a top frame and content frame. My problem is, as the page moves down to end, the top should move too, and if scrolling equals top heiht, the top woldn's be seem.

Note: There is only one top page in this project and many content pages. The content pages do not contains also a top page code. Jus the known frameset template. The only difference is frames are desired to move .

有帮助吗?

解决方案

What I could understand is that you tried to create a section of the page that scrolls as you scroll down/up on the page.

In your CSS, if your iframe id is "frame",

then do this

#frame{
position:fixed;
/* specify widths and heights as you like */
}

其他提示

If you have a header that needs to stay at the top of the page use the

position: fixed;

technique, if im wrong you need to seriously rephrase your question.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top