아이프레임 크기 자동 script 설정 방법
본문
초보 입니다.. 안녕 하세요
아이프레임 의 크기를 제어 하는 스크립트 설정 방법을 알고 싶습니다.
게시판 작성시
<iframe id="vid_iframe" src="naver.com" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen></iframe>
↓↓↓↓
<iframe id="vid_iframe" src="naver.com" frameborder="0" allowtransparency="true" marginwidth="0" marginheight="0" scrolling="no" allowfullscreen="" style="font-size: 14px; box-sizing: border-box; width: 920px; height: 552px;"></iframe>
상기와 같이 수정이 가능 하지만.
궁금한 내용은 그누보드 5의 게시판에 자동으로 사이즈 설정되는 방법은 없을까요?
혹시 그누보드 내의 css 부분을 설정 하면 가능 한가여??
고수 님들의 도움을 요청 드립니다.
답변 1
CSS에 있는 미디어 쿼리를 사용해 보세요.. https://www.w3schools.com/css/css_rwd_mediaqueries.asp
CSS로 iframe만 설정하는 방법으로 넣어 보세요.. 별도의 CSS파일로 하셔도 되고..
답변을 작성하시기 전에 로그인 해주세요.