Emulating css position static with Prototype

瀏覽次數:18 次
跳到第一則未讀訊息

kstubs

未讀,
2012年9月29日 中午12:23:162012/9/29
收件者:prototype-s...@googlegroups.com
The problem with position static, that I can see, is not only is the content static in the y-space, but also in the x-space.  This means that if a user scrolls the page left and right, well then the item(s) that you have fixed in a left hand gutter (as an example) do not remain fixed in this space, they end up sliding over the top of your content.

I'm looking for a Prototype.js alternative for this.  Any tips?
I can think of an alternative approach that might be suitable would be a scrollable div container.  I see these more and more, I'm not sure if these are coded with JavaScript or just using CSS overflow style on the div container.

Karl..

kstubs

未讀,
2012年9月29日 下午1:25:482012/9/29
收件者:prototype-s...@googlegroups.com
Correction, I mean the CSS position is "fixed".
回覆所有人
回覆作者
轉寄
0 則新訊息