小编bik*_*ick的帖子

中心jquery滑块与CSS

我的页面上有一个jquery滑块,当页面足够宽以适应它但是与窗口的左边缘对齐时会居中,当窗口较小时会移动.下面是我的CSS - 我错过了什么吗?

#billboardWrapper {height:600px;width:100%;margin:-170px 0 0 0px; position:relative; overflow:hidden; /*border-width: 0 20px 20px 20px; border-style:solid; border-color: {{settings.billboard_color}}; /* can't use border shorthand. IE9 has a rendering bug, see more notes in the ie8.css file */ }

#billboard {height:600px;width:1000px;position:relative;/*background:#1c1c1c;*/ background-position: 50% 0pt;}

#billboardPrev,
#billboardNext { display:block; text-indent:-9999px; position:absolute; left:40px; top:270px; width:30px; height:30px; cursor:pointer; background: url(arrows.png) no-repeat 0 0; z-index:99;}
#billboardNext {left:auto; right:40px; background-position:0 -92px; }

.slide {height:600px;width:1000px;display:none;  } 
.slide img {height:600px;  width:100%; background-position: 50% 0pt;  
.slideLeftLayout .slideTitle,.slideLeftLayout .slideText,.slideLeftLayout .slideLink {left:50px;} …
Run Code Online (Sandbox Code Playgroud)

css slider jquery-plugins css-float centering

2
推荐指数
1
解决办法
3366
查看次数

标签 统计

centering ×1

css ×1

css-float ×1

jquery-plugins ×1

slider ×1