![]() | 1 tension 2013-12-29 11:20:30 +08:00 最好先给 #sides 设置固定宽度 然后 margin: 0 auto; 比较好 还有一般轮播不都是背景图么? |
![]() | 2 yimity 2013-12-29 13:58:08 +08:00 这个一般貌似是不行的,设背景图吧,center top 就可以了。 |
![]() | 3 ray1980 2013-12-29 14:31:43 +08:00 你可以参考淘宝的做法, #slider { width:100%; height:100%; overflow:hidden;} #slider-frame { position:relative; width:980px; height:640px; margin:0 auto;} #slider-wrapper { position:absolute; left:50%; width:1920px;} #slider-list { position:absolute; left:-50%; width:1920px;} |
![]() | 4 zenozeng 2013-12-29 19:23:44 +08:00 background-size: cover? |
![]() | 5 aisin 2013-12-29 20:36:47 +08:00 把图片放到background里, 这样更方便, 更好设置 |