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