css background-repeat
說(shuō)明:
設(shè)置或檢索對(duì)象的背景圖像是否及如何鋪排。必須先指定對(duì)象的背景圖像。
對(duì)應(yīng)的腳本特性為backgroundRepeat。請(qǐng)參閱我編寫(xiě)的其他書(shū)目。
語(yǔ)法:
background-repeat : repeat | no-repeat | repeat-x | repeat-y
參數(shù):
repeat : 背景圖像在縱向和橫向上平鋪
no-repeat : 背景圖像不平鋪
repeat-x : 背景圖像在橫向上平鋪
repeat-y : 背景圖像在縱向平鋪
示例:
menu { background: url("images/aardvark.gif"); background-repeat: repeat-y; }
p { background: url("images/aardvark.gif"); background-repeat: no-repeat; }
作者:大學(xué)生新聞網(wǎng) 來(lái)源:大學(xué)生新聞網(wǎng)
發(fā)布時(shí)間:2025-03-27 閱讀: