背景图像垂直重复为div [英] background image vertical repeat for a div
本文介绍了背景图像垂直重复为div的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想垂直重复背景图片,直到页面底部。
I want to repeat a background-image for a div vertically till the bottom of the page.
#repeat {
background: url(repeat-image.png) repeat-y;
height: 100%; /* this does not work, but height: 1024px; does */
}
这不起作用。我需要这样做根据我得到的页面设计。可以这样做吗?
This does not work. I need to do so according to the page design that I have got. Can this be done?
关于
Vikram
With regards Vikram
推荐答案
尝试为您的< body>
和设置
height:100%