2016-03-23 1 views

Répondre

1

Ne pensez pas que ce soit possible, ne pouvez-vous pas ajouter un espace transparent dans bg.PNG?

0

Vous ne pouvez pas avoir d'espaces entre les images d'arrière-plan. Mais vous pouvez modifier votre image pour avoir les espaces que vous voulez.

4

html { 
 
    background: white; 
 
} 
 

 
body { 
 
    width: 639px; 
 
    height: 280px; 
 
    background: url(//www.gravatar.com/avatar/cbfaff96665b7567defe1b34a883db8b?s=64&d=identicon&r=PG) silver; 
 
    background-repeat: space; 
 
    border: 1px dotted red; 
 
    margin: auto; 
 
}

+0

Bonne solution, puis-je déterminer la taille entre les images? – user1684140

+0

@ user1684140, oui: 'w = 639, iw = 64, hc = w/iw | 0, hs = w% i/hc, h = 280, ih = 64, vc = h/ih | 0, vs = h% ih/vc, [hs, vs] 'est 7px horisontally et 6px verticalement. – Qwertiy