Chrome vs. Firefox与Internet Explorer的图像定位



我以此为中心和样式图像:

header img {
  display: block;
  margin: auto;
  padding: 10px;
}
header img:hover {
  transform: scale(1.2);
  transition: 1s;
}

在Chrome上,它在Firefox和Internet Explorer上工作时并未集中。但是,transform确实有效。有任何想法吗?

它在chrome中工作正常。

header img {
  display: block;
  margin: auto;
  padding: 10px;
}
header img:hover {
  transform: scale(1.2);
  transition: 1s;
}
<header>
  <img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALgAAAESCAMAAAB5He/JAAAB11BMVEX/////1iLhlyEAAAD+LxP/2CLwVGD/2iP/3CP/3iOpHCnglCFwCAf/3yPfkyHimCFxa1fopiHqnSL80CLmoiHqqyH3VmPusiHjnCHuyCDyvCHwtyHpqCH3xiKqiwCzlhjgugDjvx7NqgCIchL2wyL09PRqAAZjUw2RehPHggDIpQD1zADf4OSGexPTsRxWSAu9nxk5AADGhR2Tk5O4usKihACsbgC0lABCNwnnwACMcQDnxh+bghXYsgB6SQC7eQDCxsmhpanvIxF9YwBNQQpFRUV5fIUmIAWDAAinAAvn6OsfAABqWQ5WAAMrAwOjbRiCVxOVAAluZxBcX2h0YQ81LAcXFxd/g442NjbXRFjS0tJeXFV+gISYm6ZvYCaMaBY7FwVOTAt3dW6+EA1TRxuXYhZsSRBGOy5bPQ1kAC9ULhutfAArAxNdECmejAw9Jgd5UBJYVEZhVzckIBsmGQWKVABHLApaMACgkIA4EQAaJzKdbzBTOxkAAyhXRTBlYFCUh16hk2NOJACeiTx7bT5QVlyZfl0AABdjNwBNMgR/SQC7n4C1h0k5MxwqMkZNSkGUOw1OAANESVcmJihGFgYZFQPJPz+RBiSHHTuqL0haHAdyAB0wFRLYC84JAAAXLklEQVR4nNWd+1vbVprHkZ3TcxQhqcgQMAGMYxxjIMYBc40JdrgkIQ5OYxMSLt0mDAmdbQPdzWXanUk7mbKTdLebTWfa7mz3j90jyRddzpElW7Kd79Mf+iTB/ujlPe953/dc1NHRXEWzp/61Jn+nC5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z7mcubitTkD2mco1FYIxBfCT9IZB3RLOvng+UX2oBmNEQz6dz/IoXRZzr2lnPzZVv4GNDk4BPzvO0q0XbTalCLqmyo/BWkE+OOj/P1ipFU4XY0IL8SgtmNcgXX3gSyLzSzv63K3PjiF/hh13d79kMRTP7j767V/y2gTD8/1ywO0YtnO3TAAAAAElFTkSuQmCC'>
</header>

谢谢大家的帮助。它已经分类了。这个问题只是缓存问题。很抱歉,如果我浪费了任何人的时间。

相关内容

  • 没有找到相关文章

最新更新