IE doesn't support height=auto for images, what should I use?

前端 未结 11 1018
太阳男子
太阳男子 2021-01-03 22:51

I have some images with height=auto because sometimes they are different heights whereas they are always the same width. It works in every browser but I.E., is there someth

11条回答
  •  灰色年华
    2021-01-03 23:44

    I found that adding min-height:1px solves the issue. Not sure why, but, worked for me.

提交回复
热议问题