Guys, help a
newbie, I can not ensure that the parent div always adjusts to the size
of the image in the Child, the bottom is always some margin, please tell
me where does it come
here is the code
here is the code
<html>
<body> <style> #box { background-color:#222; width: 400px;
height: auto; } #color { background-color: #222; width: 400px; height:
auto; } #color img { max-width:100%; height: auto; } </style>
<div> <div id="box"> <a href=""></a> <div
id="color"><img src="1234.jpg"></div> </div>
</div> </body> </html>
0 commentaires:
Enregistrer un commentaire