现在这个特定的容器在所有浏览器上看起来都一样,除了 Windows 上的 IE。
我该怎么做才能修复它?
.container {
background-color: #FFFFFF;
margin:0 auto;
min-height: 170px;
width: 770px;
border:3px solid #000000;
margin-top:30px;
margin-bottom:60px;
}
最佳答案
在你的脑海中,粘贴这个元标签:
<meta http-equiv="X-UA-Compatible" content="IE=9" />
IE 喜欢与众不同。
关于css - 如何为 IE 和其他浏览器居中这个容器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8598696/