현재 floatL과 floatR을 pc에서만 보이게 하기 위해 다음과 같은 코드를 작성하였습니다.
<?php if (!G5_IS_MOBILE) { // PC ¿¡¼¸¸ ?>
<div id="floatL">
<?php foreach($arrL as $v){ ?>
<div style="margin-bottom:<?=$tmpMarginBottom?>px">
<a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a>
</div>
<? } ?>
</div>
<?php } ?>
<?php if (!G5_IS_MOBILE) { // PC ¿¡¼¸¸ ?>
<div id="floatR">
<?php foreach($arrR as $v){ ?>
<div style="margin-bottom:<?=$tmpMarginBottom?>px">
<a href="<?=$v[0]?>" target="<?=$v[3]?>"><img src="<?=$v[1]?>" width="<?=$tmpWidth?>" border="<?=$tmpBorder?>" alt="<?=$v[2]?>"></a>
</div>
<? } ?>
</div>
<?php } ?>
우선 pc에서는 잘 나오는 것을 확인했고, 핸드폰에서 안나오는것 까지도 확인을 하였는데,
문제는 크롬탭을 모니터 화면 반으로 분할하였을때 왼쪽 배너는 안보이는데,
오른쪽 배너는 남아있어서 페이지에 가로 스크롤이 생겨버립니다.
해결방안이 있을까요?

답변 2개 / 댓글 1개
답변을 작성하려면 로그인이 필요합니다.