魅影月
若是全背景,可以用以下最簡單語法。
body{ background:url(網址); }
【當網頁捲動時圖案不移動】
body{background-attachment: fixed; background-image: url("你要的圖片"); background-repeat: repeat; }
【當網頁移動時圖案一同移動】 body{background-attachment: scroll; background-image: url("你要的圖片"); background-repeat: repeat; }
【背景圖案不重複。】 將repeat更改成no-repeat 【背景圖案在 x-方向重複。】 將repeat更改成repeat-x 【背景圖案在 y-方向重複。】 將repeat更改成repeat-y
|
|