[css] 모바일 이미지 조절 코딩 > 팁앤테크

본문 바로가기
사이트 내 전체검색

팁앤테크

[css] 모바일 이미지 조절 코딩

페이지 정보

본문

 

방법1. 

<script>
  $( document ).ready( function() {
    $(".cd-faq-content img").attr({"width":"", "height":""}).css({"max-width": "100%"});
    $(".cd-faq-content img").css({"width":"", "height":"", "max-width": "100%"});
  } );
</script>

 

방법2. 

.content { width:100%; margin:0 auto; text-align:center; }
.content img { max-width:100%; }

추천0

댓글목록

등록된 댓글이 없습니다.

회원로그인

회원가입

사이트 정보

株式会社YHPLUS / 대표 : ZERO
〒140-0011 東京都品川区東大井2-5-9-203
050-5539-7787
오픈카카오톡 (YHPLUS) :
https://open.kakao.com/o/slfDj15d

접속자집계

오늘
4,430
어제
5,299
최대
7,259
전체
1,269,251
Copyright (c) 株式会社YHPLUS. All rights reserved.