CSS 背景重复 x 和 y

11
请问是否可以使用小图片作为背景div并进行水平和垂直重复?示例参见此链接。谢谢。
3个回答

21

3
无需使用 background-repeat 属性。如前所述,这是默认值。 - BoltClock

5

2

use this....

float: left;
width: 100%;
background: url(../images/img01.jpg) left top repeat;
height: 500px;  //set the height to which you want to repeat

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接