css 層疊順序

今天下午在一個問題上搞了很久, 查了手冊原來是這樣...

http://ant4css.blogspot.tw/2008/11/z-index.html

要將多個元素重疊,要用到 position 特徵的 relative, absolute, fixed,及 top, right, bottom, left 四個特徵。z-index 必須配合 position 設為 relative, absolute, fixed 使用;其它情形 z-index 沒有效果,一律等同於 0 層。使用時要注意 IE6 沒支援 position:fixed。

留言

熱門文章