2010-06-22 3 views
0

IFrame 내부에 PDF를로드하는 중입니다.IE6 및 IE7에서 IFrame에 PDF로드하기

IE6과 IE7에서 PDF가 올바르게로드되어 있습니다. 그러나 해결해야 할 문제가 있습니다.

IE7 내의 IFrame에서 PDF를로드하고 창의 오른쪽에서 가로 방향으로 창의 크기를 조정하면 PDF의 크기가 조정되지 않고 크기가 조정되지 않습니다. PDF. 창의 아래쪽 모퉁이에서 크기를 조정하면 PDF가 가로로 잘 리 스케일/크기 조절됩니다.

IE6에서 창의 오른쪽에서 가로 방향으로 크기를 조정하면 PDF가 올바르게 다시 채워지고 하단 모서리에서도 다시 조정됩니다.

IE7에서 팝업 창의 오른쪽에서 크기를 조정할 때 PDF 크기가 축소되지 않는 이유는 무엇입니까? 어떤 도움이라도 대단히 감사합니다.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 

<html xmlns="http://www.w3.org/1999/xhtml" > 
<head runat="server"> 
    <title></title> 
    <style type="text/css"> 
     * { 
     padding: 0; 
     margin: 0; 
     } 
     html, body { 
    width:100%; 
     height: 100%; 
    overflow:hidden; 
     } 
     #container{ 
     min-height: 100%; 
     } 
     * html #container { 
     height: 100%; 
     } 
    </style> 

</head> 
<body> 
    <form id="frmMine" runat="server"> 
     <div> 
      <iframe style="min-height:500px;min-width:100%; max-width:100%;height:auto !important;" id="iframe" runat="server"></iframe> 
     </div> 
    </form> 
</body> 
<script type="text/javascript"> 
     function resizeIframe() { 
      var height = document.documentElement.clientHeight; 
      height -= document.getElementById('iframe').offsetTop; 
      height -= 5; 
      document.getElementById('iframe').style.height = height + "px"; 
     }; 
     document.getElementById('iframe').onload = resizeIframe; 
     window.onresize = resizeIframe; 
    </script> 
</html> 
+0

어떤 형식입니까? – reisio

답변

1

IE6의 차이를 설명 할 수 min-/max-를 지원하지 않는 :

다음은 IFrame을 내 HTML입니다. 실제로 원하는 것을 성취하는 데있어 * { width: 100%; height: 100%; overflow: hidden; margin: 0; }을 사용하지 않는 이유가 있습니까?

관련 문제