인벤 스크립트 게시판

10추글

모바일 상단 메뉴

본문 페이지

[기타] 'Or연'님이 문의하신 스크립트 입니다.

아이콘 Nacx
조회: 1843
추천: 3
2018-03-30 16:46:13
올려주신 내용을 바탕으로 작성한 소스를 전달 드립니다.

1. 그림을 한 줄에 3개씩 나열
width:32.5% 스타일을 추가해서 한 줄에 3개의 이미지씩 들어가도록 처리했습니다.
이미지 하나는 높이가 달라서 맞추길 원하시는 경우, 스타일에 height 고정값으로 추가해 주시면 됩니다.

2. 클릭 시 확대, 다시 클릭 시 축소
data-inven-click-css 를 추가해서 한번 클릭하면 해당 이미지가 가로폭 100%가 되도록 (확대), 한번 더 클릭하면 원래 사이즈로 되돌아오도록 하였습니다.


원하시던 형태와 다르거나,
이외에도 궁금하신 내용은 언제든지 글 남겨주세요.
감사합니다.


■ HTML을 누른 상태에서 붙여넣어 주세요.

<div style="text-align:left; width:450px">

<img src="https://upload2.inven.co.kr/upload/2018/03/30/bbs/i16509301608.jpg" data-inven-click-css="{'_SELF_':[{'width':'100%'},{'width':'32.5%'}]}" style="width:32.5%;">
<img src="https://upload2.inven.co.kr/upload/2018/03/30/bbs/i16569683850.jpg" data-inven-click-css="{'_SELF_':[{'width':'100%'},{'width':'32.5%'}]}" style="width:32.5%;">
<img src="https://upload2.inven.co.kr/upload/2018/03/30/bbs/i16539447929.jpg" data-inven-click-css="{'_SELF_':[{'width':'100%'},{'width':'32.5%'}]}" style="width:32.5%;">
<img src="https://upload2.inven.co.kr/upload/2018/03/30/bbs/i16503402940.jpg" data-inven-click-css="{'_SELF_':[{'width':'100%'},{'width':'32.5%'}]}" style="width:32.5%;">
<img src="https://upload2.inven.co.kr/upload/2018/03/30/bbs/i16578628571.jpg" data-inven-click-css="{'_SELF_':[{'width':'100%'},{'width':'32.5%'}]}" style="width:32.5%;">
<img src="https://upload2.inven.co.kr/upload/2018/03/30/bbs/i16539409295.jpg" data-inven-click-css="{'_SELF_':[{'width':'100%'},{'width':'32.5%'}]}" style="width:32.5%;">

</div>

Lv76 Nacx

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징