skin의 style.css
.view-mobile img, .view-mobile video {
display: inline-block;
width: auto\9 !important; /* ie8 */
width: auto !important;
max-width: 100%;
height: auto !important;
}
.view-mobile .video-container {
position: relative;
height: 0;
padding-top: 30px;
padding-bottom: 56.25%;
overflow: hidden;
}
.view-mobile .video-container iframe,.video-container object,.video-container embed {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
}
skin의 view관련 코드에 추가
<?if(G5_IS_MOBILE){?>
<script src="<?php echo G5_JS_URL; ?>/jquery.mobile.resize.js"></script>
<?}?>
/js 에 파일 추가
jquery.mobile.resize.js.zip
0.00MB
참고
'[ Web 관련 ] > 그누보드 관련' 카테고리의 다른 글
그누보드 PC에서 모바일 확인 팁 (0) | 2021.09.24 |
---|---|
(모바일) 내용 페이지에 테이블(table) 가로 사이즈 조절 (0) | 2019.08.19 |
게시글 도메인 주소 한번에 바꾸기 (쿼리) (0) | 2019.07.26 |
그누보드 메시지 호출 후 페이지 이동(기본 함수) (0) | 2018.10.31 |
회원 아이디 유효성 체크 (0) | 2018.10.28 |