L'arrière-plan de div (colonne) gauche et droite n'apparaît pas, mais lorsque vous ajoutez "height: xx px" sont affichés. mais mon contenu div est flexible. Comment résoudre ce problème? tnx. mon code est:L'arrière-plan n'apparaît pas en répétition-y
<div style="background:url("image/l.png") repeat-y;float:left;width:3px;height:auto;" id="left"></div>
<div style="width: 613px;background:#fff;" id="center">
<p>contents</p>
<p>contents</p>
<p>contents</p>
.
.
.
.
.
.
</div>
<div style="background:url("image/r.png") repeat-y;float:left;width:3px;height:auto;" id="right"></div>
Veuillez séparer votre CSS de votre HTML. Ce n'est plus 1997. – zzzzBov