开发者

keeping a DIV at the top and center of the page with ability change size div

开发者 https://www.devze.com 2023-01-02 05:49 出处:网络
keeping a DIV at the top an开发者_Python百科d center of the page with ability change size div like loading box in Gmail?As I said, your question is extremely hazy but I guess you are looking to place

keeping a DIV at the top an开发者_Python百科d center of the page with ability change size div like loading box in Gmail?


As I said, your question is extremely hazy but I guess you are looking to place a DIV at a fixed position that stays there even when the page is scrolled.

The CSS way to do this is

<div style="position: fixed; top: 0px; left: 0px;">....</div>

won't work in IE < 7. The only way to make this work in IE6, as far as I know, is kludgy and jittery JavaScript-based workarounds.

0

精彩评论

暂无评论...
验证码 换一张
取 消