7

背景画像を中央に配置し、最後の左のピクセル列のみを左に繰り返し、右と最後のピクセル行を下に繰り返します。ズームアウトすると、これが表示されます

                 --------------   repeat last pixel of the right of the picture to the right  
                 |            |
                 |            | 
                 --------------      
                 ^ 
                 |
                 here repeat to the left the first pixels  to the left

画像の下では、ピクセルの最下行が下に繰り返されます。

私の言いたいことを理解していただければ幸いです...

ミンク

4

4 に答える 4

1

これはあなたが探している正確な解決策ではありませんが、探しているいくつかの画像に同じ効果がある可能性があります:

.bg {
    background:url(../images/image.jpg),url(../images/image.jpg);
    background-repeat: no-repeat, repeat;
    background-position: 0px 0px;
    background-position-x: center;
    background-size: 1914px 100% , 1px 100%; // 1914px is the width of the image
}
于 2016-10-28T01:15:29.890 に答える
1

以下のリンクをご覧ください。

CSS 背景画像を右から x ピクセルの位置に配置しますか?

于 2013-02-26T11:08:25.850 に答える