<p><iframe frameborder="0" height="1200" marginheight="0" marginwidth="0" scrolling="yes" src="http://www.naver.com" width="100%"></iframe></p>

 

 

아이프레임으로 사이트의 상단으로부터 200px 정도 아래로 잘라서 보여주고싶은데

 

어떻게해야할까요?

 

위 태그를 사용중입니다. top:-200px; 이라고 적어넣어보니 작동하지 않는것같아서요.

  • profile
    javascript로 제어해야 합니다.

    iframe javascript 제어로 검색하시면 방법 나올거에요. (혹은 자식창 제어)
  • profile
    div를 추가하시고 프레임과 사이즈를 동일하게 맞추신후 top이나 left로 조절해보세요.
    예를 들자면
    <div style="position:absolute; top:-200px; left:-20px;width:1020px; height:1550px;">
    <iframe src="http://xetown.com" width="1020" allowtransparency="true" height="1550" border="0" frameborder="0" framespacing="0" marginheight="0" marginwidth="0" scrolling="no"></iframe>
    </div>
  • profile ?
    이대로 사용해보니 잘 되는군요~! 감사합니다. 모바일에서는 어찌보일지 함 봐야겠어요