$is_mobile이 먹히지않습니다

$is_mobile이 먹히지않습니다

QA

$is_mobile이 먹히지않습니다

답변 1

본문

http://goomgoom.edenstore.co.kr/

 

주소는 여기구요

 

3731834642_1610436695.0326.png

 

 

이렇게 되어있는부분을 모바일로보면 유튜브 동영상이 아래로 가있습니다

 

이상하게 유튜브 영상만 이러더라고요 다른부분 괜찮아서

 

<?php if($is_mobile) { ?>
    <iframe style="position:absolute; left:50%; top:30%; z-index:99;" width="560" height="315" src="https://www.youtube.com/embed/X79qWJI2NHM" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<? } ?>
<?php if(!$is_mobile) { ?>
    <iframe style="position:absolute; left:50%; top:30%; z-index:99;" width="560" height="315" src="https://www.youtube.com/embed/X79qWJI2NHM" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<? } ?>

 

이부분만 mobile일때 별개로처리하려고하는데

 

is_mobile이 먹히지않습니다

 

is_mobile일때 echo 찍어서 값나오나 확인해도 pc일때로만 넘어갑니다

 

혹시 왜이런지 알수있을까요 ?

이 질문에 댓글 쓰기 :

답변을 작성하시기 전에 로그인 해주세요.
QA 내용 검색
질문등록
전체 33
© SIRSOFT
현재 페이지 제일 처음으로