background-repeat版本:CSS1  兼容性:IE4+ NS4+ 继承性:无
语法:
background-repeat : repeat | no-repeat | repeat-x | repeat-y
取值:
repeat :默认值。背景图像在纵向和横向上平铺
no-repeat :背景图像不平铺
repeat-x :背景图像仅在横向上平铺
repeat-y :背景图像仅在纵向上平铺
说明:
设置或检索对象的背景图像是否及如何铺排。必须先指定对象的背景图像( background-image )。
此属性对于 currentStyle 对象而言是只读的。对于其他对象而言是可读写的。
对应的脚本特性为 backgroundRepeat
示例:
menu { background: url("images/aardvark.gif"); background-repeat: repeat-y; }
p { background: url("images/aardvark.gif"); background-repeat: no-repeat; }