팝업레이어관리 반응형으로 바꾸기 채택완료
99xx0821
2년 전
조회 2,265
반응형은 지원하지 않는다고 해서 bbs/newwin.inc.php의
</p>
<p> <div id="hd_pops_<?php echo $nw['nw_id'] ?>" class="hd_pops" style="top:<?php echo $nw['nw_top']?>px;left:<?php echo $nw['nw_left']?>px"></p>
<p> <div class="hd_pops_con" style="width:<?php echo $nw['nw_width'] ?>px;height:<?php echo $nw['nw_height'] ?>px"></p>
<p> <?php echo conv_content($nw['nw_content'], 1); ?></p>
<p> </div></p>
<p> <div class="hd_pops_footer"></p>
<p> <button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_hours']; ?>"><strong><?php echo $nw['nw_disable_hours']; ?></strong>시간 동안 다시 열람하지 않습니다.</button></p>
<p> <button class="hd_pops_close hd_pops_<?php echo $nw['nw_id']; ?>">닫기 <i class="fa fa-times" aria-hidden="true"></i></button></p>
<p> </div></p>
<p> </div>
를
</p>
<p><div id="hd_pops_<?php echo $nw['nw_id'] ?>" class="hd_pops" style="top:<?php echo $nw['nw_top']?>px;left:<?php echo $nw['nw_left']?>px;</p>
<p> <?php if ($windowWidth <= 480) echo 'top: 0; left: 0;'; else echo 'top:' . $nw['nw_top'] . 'px; left:' . $nw['nw_left'] . 'px;'; ?>"></p>
<p> <div class="hd_pops_con" style="width:<?php echo $nw['nw_width'] ?>px;height:<?php echo $nw['nw_height'] ?>px;</p>
<p> <?php if ($windowWidth <= 480) echo 'width: 70vw; height: fit-content;'; else echo 'width:' . $nw['nw_width'] . 'px; height:' . $nw['nw_height'] . 'px;';?>"></p>
<p> <?php echo conv_content($nw['nw_content'], 1); ?></p>
<p> </div></p>
<p> <div class="hd_pops_footer"></p>
<p> <button class="hd_pops_reject hd_pops_<?php echo $nw['nw_id']; ?> <?php echo $nw['nw_disable_hours']; ?>"><strong><?php echo $nw['nw_disable_hours']; ?></strong>시간 동안 다시 열람하지 않습니다.</button></p>
<p> <button class="hd_pops_close hd_pops_<?php echo $nw['nw_id']; ?>">닫기 <i class="fa fa-times" aria-hidden="true"></i></button></p>
<p> </div></p>
<p></div></p>
<p>
로변경하였는데 기존에 관리자 -> 팝업레이어관리에서 입력하는 width, height값을 480 이상일땐 그대로 사용하고싶으나 먹히지 않네요.. 무엇이 문제일까요ㅜㅜ
댓글을 작성하려면 로그인이 필요합니다.
답변 1개
채택된 답변
+20 포인트
2년 전
bbs/newwin.inc.php 는 pc 타입인 경우 적용되는것 같고
mobile/newwin.inc.php 가 mobile 타입인 경우 적용되는것 같습니다.
mobile/newwin.inc.php 에만 소스를 적용하는 방법이 도움이 될지 모르겠습니다.
</p>
<p><?php
...
$result = sql_query($sql, false);
?></p>
<p> </p>
<p><style>
@media screen and (max-device-width: 480px) {
.hd_pops {
width: 94vw;
}
}
</style></p>
<p> </p>
<p><!-- 팝업레이어 시작 { -->
<div id="hd_pop">
<h2>팝업레이어 알림</h2>
...</p>
<p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인