2000多張網(wǎng)頁制作背景圖片,有需要的朋友可以下來看看。
網(wǎng)頁制作背景圖片大小如何設置
如果你圖片實在太小的話只能以小圖片鋪滿整個頁面的哦。
方法:
1、“頁面屬性”,把背景圖片改為你的圖片
2、在<head></head>之間加代碼:
<style type="text/css">
<!--
body {
background-image: url(圖片地址);
}
-->
</style>
設置背景問題:
得用到CSS樣式代碼,這是最常用,也是最簡單的
background-attachment版本:CSS1 兼容性:IE4+ NS6+ 繼承性:無
語法:
背景不滾動:
background-attachment : scroll | fixed
參數(shù):
scroll : 背景圖像是隨對象內(nèi)容滾動
fixed : 背景圖像固定
說明:
設置或檢索背景圖像是隨對象內(nèi)容滾動還是固定的。
對應的腳本特性為backgroundAttachment。請參閱我編寫的其他書目。
示例:
html { background-image: url("anasazi.tif"); background-attachment: fixed; }
背景不平鋪(重復):
background-repeat版本:CSS1 兼容性:IE4+ NS4+ 繼承性:無
語法:
background-repeat : repeat | no-repeat | repeat-x | repeat-y
參數(shù):
repeat : 背景圖像在縱向和橫向上平鋪
no-repeat : 背景圖像不平鋪
repeat-x : 背景圖像在橫向上平鋪
repeat-y : 背景圖像在縱向平鋪
說明:
設置或檢索對象的背景圖像是否及如何鋪排。必須先指定對象的背景圖像。
對應的腳本特性為backgroundRepeat。請參閱我編寫的其他書目。
示例:
menu { background: url("images/aardvark.gif"); background-repeat: repeat-y; }
p { background: url("images/aardvark.gif"); background-repeat: no-repeat; }