【问题标题】:Firefox is not responding to the click. No error in Firebug and nothing is happening. Chrome it is working fineFirefox 没有响应点击。 Firebug 中没有错误,也没有发生任何事情。铬它工作正常
【发布时间】:2011-11-01 13:51:16
【问题描述】:

这是我用来在内部和 iframe 中打印 pdf 的代码。 但在 Firefox 中它甚至没有响应。萤火虫没有错误。 在 chrome 中它工作正常。 请帮帮我。

<html>
    <head>
        <script type="text/javascript">
        function Printpd(pdf)
        {
                pdf.focus();
                pdf.print();
        }
        </script>
    </head>

    <body>
            <iframe name="myFrame" id="myFrame" width="600" height="400" src="uploadedfiles/DPA%20Quick%20Reference%20Guide.pdf""></iframe>

            <input type="button" value="Print IFRAME" onclick="Printpd(myFrame);" />
    </body>
</html>

【问题讨论】:

标签: asp.net pdf iframe


【解决方案1】:

这将解决 IFrame 引用,它不会解决您的打印问题,请参阅@Nikki9696 的链接:

<input type="button" value="Print IFRAME" 
        onclick="Printpd(document.getElementById('myFrame'));" />

【讨论】:

  • 你能给我一个@Nikki9696 的链接吗?我不知道在哪里可以看到。
猜你喜欢
  • 1970-01-01
  • 2013-05-21
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2015-01-26
  • 2017-09-04
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多