회원이미지 모양 변경 방법?
본문
<?php echo get_member_profile_img($list[$i]['mb_id']); ?> 이렇게 출력했는데 모양이 네모네요.
img-circle로 둥글게 하려고 하는데 class를 어디서 수정하면 되나요?
답변 2
이렇게만 질문주시면 자세한 답변이 어렵습니다.
URL 알려주시면 더 자세히 답변이 되겠습니다.
일단 둥글게 나오게 하려면 border-radius 를 이용합니다.
border-radius:50%를 주면 완전 동그라미이고,
border-radius:10px, 12px, 15px 등등.. px로 디테일하게 잡으면 라운드지게 됩니다.
해당 class 는 크롬이용해서 F12 - css 라인을 찾아보세요!
맞을지 모르겠습니다.
/lib/common.lib.php
- function get_member_profile_img()
if( $src ){
$attributes = array('src'=>$src, 'width'=>$width, 'height'=>$height, 'alt'=>$alt, 'title'=>$title);
=>
$attributes = array('src'=>$src, 'width'=>$width, 'height'=>$height, 'alt'=>$alt, 'title'=>$title, 'class'=>'img-circle');
----------
정 안될 경우..
임시방편으로 최신글 스킨 style.css 또는 공통 css 파일에
.testimonial .thumb img{border-radius:50%}
추가하는 방법도 있습니다.