DIV+CSS属性清单 | 相关内容background-repeat
background-repeat版本:CSS1  兼容性:IE4+ NS4+ 继承性:无

 
语法:
 
background-repeat : repeat | no-repeat | repeat-x | repeat-y
 
参数:
 
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; }
 


学习DIV+CSS div css CSS 就上divcss5 在线CSS教程CSS手册CSS3手册