CSS - Background image stretch horizontally and repeat vertically?
问题 Using background-size: cover I am able to make the background stretch to fit the full width of the page. Using repeat-y I am able to make the background repeat or tile vertically, to the full height of the page. Is there any way to combine these two effects? Unfortunately they don't seem to work together (at least in Chrome). It appears that I can either stretch in both directions with background-size: cover , or not stretch in the x direction but repeat in the y direction. Edit: Using