質問

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