【发布时间】:2011-11-12 15:29:45
【问题描述】:
我有一个尺寸为 1x947 像素的背景图片,
问题是它是一个渐变色,所以我只使用repeat-x, 但是当页面高度超过 947 像素时,它会显示为背景 颜色,
background-image:url(bg.gif);
background-repeat:repeat-x;
如何拉伸?
这是 fiddle http://jsfiddle.net/K9cUd/1/ 上的代码示例
【问题讨论】:
-
你能在jsfiddle.net上放点东西吗?
-
不能把背景色设置为渐变中的两种颜色之一吗?那么它至少会顺利地从渐变中流出。
-
您好,您最终找到解决方案了吗?
标签: html css image background-image stretch