[問題]請問如何做出網頁底圖不會移動?[已解決]

Home Home
引用 | 編輯 Sily
2004-10-22 13:42
樓主
推文 x0
請教各位先進前輩,要讓一張圖做為底圖,而不會隨著滑鼠和拉動上下移動,要下那種語法,可有參考的資料,謝謝。

獻花 x0
引用 | 編輯 ckc2001hk
2004-10-22 20:10
1樓
  
css格式
body {
     background-attachment:fixed;
     background-position:bottom right;
     background-repeat:no-repeat;
}
background-attachmen: fixed (固定) / scroll (依背景改變)
(背景是固定還是跟著scroll bar轉?)
background-image: 背景圖
background-repeat: no-repeat (不重覆 ) / repeat (重覆) / repeat-x (重覆x軸) / repeat-y (重覆y軸)

獻花 x0
引用 | 編輯 Sily
2004-10-23 05:09
2樓
  
感謝回答,這個假日實作看看。謝謝。

獻花 x0