img元素不像其他浏览器那样采用维度

时间:2018-04-20 07:54:03

标签: html css reactjs cross-browser internet-explorer-11

在反应中,我有一个img标签:

<img className="invert-image" src= {commitFilled} alt=""/>

.invert-image{
  width: 1.5em;
  height: 1.5em;
}

除IE 11外,它在所有浏览器中呈现完美呈现。在IE 11中,它呈现的是小尺寸。我甚至试过px但没有成功。任何帮助将不胜感激。

0 个答案:

没有答案
相关问题