我的问题非常接近这个问题:
除了我想在左侧使用 bg 图案并让右侧成为无缝颜色。有任何想法吗?
添加具有repeat
(或repeat-y
)值的背景属性:
#navigation {
display: table-cell;
width: 200px;
background: #fff url(http://placedog.com/400/300) scroll repeat-y top left;
}
url
应该指向服务器上背景图像的位置。
工作示例:http: //jsbin.com/amunuz/21/edit