我有以下 css,它在 chrome、firstfox 和 Edge 中将绝对定位的图像居中
<div runat="server" id="Logo" class="MasImg"> </div>
.MasImg {
position: absolute;
top: -25px;
width: 100px;
height: 60px;
background-image: url('../images/pm_image.png');
background-position-x: center;
}
但是在 Internet Explorer 11 中,这不会使图像居中。相反,图像保留在容器 div 的右侧。我的问题是,我怎样才能让上面的脚本在 ie11 中运行?