<分区>
标签 css
<分区>
我在 homepage 上有一个 slider 图像
出于某种原因,在 Firefox 和 Safari 中图像显示在右侧。在 Chrome 中,它应该显示在中心。
我相信这取决于定位,但我尝试完成的更改似乎很有帮助。
有人有什么想法吗?
最佳答案
将您的 CSS 更改为:
#slider-container{
width:960px;
position: relative;
overflow:hidden;
height:300px;
z-index:100;
border-bottom:1px solid #2b292d; padding-bottom:20px;
text-align: center;
margin: 0px auto;
}
#content-wrapper{ position:relative; z-index:200; bottom:-50px;}
关于CSS 左 :25% not working the same across browsers?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12890714/