我正在尝试将横幅滑块居中对齐,但它没有正确居中。如果我更改 margin-left 属性以匹配我的屏幕分辨率,它只会在我的屏幕上居中。但它并没有集中在更宽的屏幕上。我的网站是 myusedwheel.com,这是我的代码:
<style type="text/css">
#slider{
margin-left: 195px !important;
overflow: hidden;
position: absolute;
top: 192px;
width:960px!important;
height:173px !important;
}
#navigation{
position:relative; z-index:999;
}
.header-container{
height:385px;
}
#controls{
display:none;
}
</style>