답변 3개 / 댓글 3개
채택된 답변
+20 포인트
#ban a{display:inline-block;}
#ban img{padding-bottom:10%;}
#ban a:last-child img{padding-bottom:0%;}
last-child 부분을 변경해 보세요
참조 ) 그리고 높이 %를 사용하시려면
스트립트를 이용하시면 됩니다.
그리고 #ban a:last-child img{padding-bottom:0% !important;}
jQuery(document).ready(function(){
jQuery("#ban img").each(function(){
var padding_bottom=parseInt(jQuery(this).height() / 10); //이미지의 10%
jQuery(this).closest("a").css("padding-bottom", padding_bottom);
});
});
답변을 작성하려면 로그인이 필요합니다.

