SVG in img element proportions not respected in ie9

前端 未结 6 1266
半阙折子戏
半阙折子戏 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:18

    Somehow this scss fixed my issue.

    ul {
      li {
        list-style: none;
        margin: 0;
        padding: 0;
        display: inline;
        img {
          height: 20px;
          margin: 0 10px;
          display: inline-block;
        }
      }
    }
    

    I was actually making a centered list of logos for my footer and was having width issues. Normally I create an inline-block with a block element inside of it. Creating an inline element with an inline-block element worked for me. This is a specific implementation that the bug showed up for me and doesn't really resolve every bug but hopefully it helps someone reading this.

提交回复
热议问题