2013-08-20 21 views
0

My site在所有图像之间都有一个带有空白区域的幻灯片放映;不过,我想删除空白的离开第一图像,并在右侧最后一个图像白色的空间,所以它放掉页面。但它并没有删除我想要的东西。如何从第一张和最后一张图像中删除左侧和右侧空间?

什么我使用:的

.collection-type-gallery #slideshowWrapper .slide img { 
background-color: white !important; 
margin: 0px 6px; 

.slide:first-child { 
margin-left: 0px;} 

.slide:last-child { 
margin-right: 0px;}} 

回答

1
.collection-type-gallery #slideshowWrapper .slide:first-child img 

代替

.collection-type-gallery #slideshowWrapper .slide img .slide:first-child 
相关问题