开发者

strange padding with max-height

开发者 https://www.devze.com 2023-03-06 03:33 出处:网络
I have this code : as you can see开发者_StackOverflow中文版 nothing of strange. But, if I try to remove max-height:150px; from main_inside I see a small background red in the bottom of the image.

I have this code : as you can see开发者_StackOverflow中文版 nothing of strange.

But, if I try to remove max-height:150px; from main_inside I see a small background red in the bottom of the image.

Why? It should be sized regard the max-height of the image class myImage....


Images put spaces below them in some browsers. The following will provide an easy fix.

.myImage{max-width:200px; border:0px; padding: 0px; display: block;}
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号