我希望每一秒 div 都有margin-right=0, border-right=0...
. 我尝试使用 css 但没有用
我将 Albums 包装在外部 div 中rptAlbums-wrapper
,然后将单个专辑图像和标题包装在另一个 divuc-album-wrapper
中。
我试过.rptAlbums-wrapper .uc-album-wrapper :nth-child(2n+1)
了,但这不起作用
我还设置了小提琴示例
<div class="rptAlbums-wrapper">
<div class="uc-album-wrapper">
<div class="uc-album-icon">
<img alt="Album One" src="../../../../images/gallery/b9415c69-98c8-417a-960f-2adf2148c83f.jpg" class="uc-album-img" title="Album One" id="ContentPlaceHolder1_ucPhotoGallery_rptAlbums_imgAlbumIcon_0">
</div>
<div class="uc-album-name"><span id="ContentPlaceHolder1_ucPhotoGallery_rptAlbums_lblAlbumName_0">Album One</span>
</div>
</div>
<div class="uc-album-wrapper">
<div class="uc-album-icon">
<img alt="Album Two" src="../../../../images/gallery/fb1facf3-579e-4e5d-9ed8-b7f231d50f88.jpg" class="uc-album-img" title="Album Two" id="ContentPlaceHolder1_ucPhotoGallery_rptAlbums_imgAlbumIcon_1">
</div>
<div class="uc-album-name"><span id="ContentPlaceHolder1_ucPhotoGallery_rptAlbums_lblAlbumName_1">Album Two</span>
</div>
</div>
</div>
更新演示它应该如何来