Background repeat, choose how many repeats CSS
Can I choose, through CSS, how many time开发者_StackOverflow中文版s the background image is repeated?
no, you can not specify how many times a background is repeated. the only options you have are: no-repeat
, repeat-y
, repeat-x
and repeat
You can set an absolute width for a box, but you can't choose the number of times the background image is repeated.
With regular CSS its only possible to select if and in which direction (horizontal or/and vertical) the background repeats.
You can't limit the number of repeats. Either you display the image once, or repeat it to either the length or height of the browser.
No, you can't. It will repeat (x, y or both) for the entire element width/height. You can set the element's size to a multiple of your background image width/height.
精彩评论