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

前端 未结 11 1017
太阳男子
太阳男子 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:53

    There is also an IE issue when using images with height=auto within flex containers.

    For me personally, the issue was caused due to the image being placed within nested flex containers. I was able to remove the parent flex container and the issue was resolved for me.

    There are a few more work around solutions that people have mentioned in the page below: https://github.com/philipwalton/flexbugs/issues/75

提交回复
热议问题