SVG in img element proportions not respected in ie9

前端 未结 6 1262
半阙折子戏
半阙折子戏 2020-11-27 14:00

CSS:

img{
    max-height:30px;
}

HTML:


I am looking for this svg image to s

6条回答
  •  独厮守ぢ
    2020-11-27 14:26

    I have spent weeks trying all kinds of solutions to be able to use SVG's in a size-adaptable website that works for major modern browsers.

    The SVG's need to be scaled using CSS percentages and include embedded bitmapped images.

    The only solution that I have found for percentage resizing in IE is to embed external SVG's in an tag.

    There are various solutions for resizing SVG's in IE to strict pixel sizes, but none of them work for percentage resizing.

    I have created a non-exhaustive test suite here.

    提交回复
    热议问题