답변 1개 / 댓글 2개
채택된 답변
+20 포인트
https://blog.theodo.fr/2018/01/responsive-iframes-css-trick/
참고하세요.
그누보드 함수를 이용해 구분해서 직접 입력하는 방법도 있습니다.
<?php if(is_mobile()){ ?>
<iframe src='' width='100' height='100'></iframe>
<?php }else{ ?>
<iframe src='' width='200' height='200'></iframe>
<?php }?>
답변을 작성하려면 로그인이 필요합니다.
if 문이 안 먹히고
iframe이 두개 다 적용되네요.... 어떻게 해결해야될까요 ㅜㅜ