iframe 에서 부모창 body width 체크후 iframe에 특정 class 지정하기
페이지 정보
본문
<script>
var parentDocument = window.parent.document;
var parentBodyWidth = parentDocument.querySelector('body').clientWidth; // 부모창 body witdh
if(parentBodyWidth > 950 > 0) {
document.querySelector('body').className = 'body_smart_editor2_900';
document.getElementById('btn_syntax_plugin_width_mod').style.display = 'none';
}
</script>
추천
0
비추천
0
- 이전글 HOOK을 이용한 관리자메뉴 추가하기 23.03.29
- 다음글 font Awesome icons 검색페이지 23.03.28

