搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

embeded pdfs work in chrome but not firefox

  • 1 回覆
  • 1 有這個問題
  • 12 次檢視
  • 最近回覆由 cor-el

more options

in my html code I use <embed src="EnglishFiles/<?php echo $Fname; ?>#toolbar=0&navpanes=0&view=fit" type="application/pdf" width="100%" height="800px"> and it works great in Chrome, and it used to work in Firefox, but something changed in Firefox, maybe that most recent update? That code still works in Chrome but not in FF 70.0.1(64) What happens when I click on the link in FF is absolutely nothing, no response of any kind. In Chrome the pdf loads in the subwindow as expected. I have restarted in safe mode, same results, manually disabled all plugins, same results.

in my html code I use <embed src="EnglishFiles/<?php echo $Fname; ?>#toolbar=0&navpanes=0&view=fit" type="application/pdf" width="100%" height="800px" /> and it works great in Chrome, and it used to work in Firefox, but something changed in Firefox, maybe that most recent update? That code still works in Chrome but not in FF 70.0.1(64) What happens when I click on the link in FF is absolutely nothing, no response of any kind. In Chrome the pdf loads in the subwindow as expected. I have restarted in safe mode, same results, manually disabled all plugins, same results.

所有回覆 (1)

more options

What code gets generated and is send by the server after the PHP code has been processed ?

Is the file send by the server as "application/pdf" ?

Any messages in the Web Console related to this issue?

Did you check the embed container this in the Inspector?

Note that width::100% only works properly when all parent containers have a width set, otherwise 100% of null is null and you won't see anything.

Can you post a link to a publicly accessible page (i.e. no authentication or signing on required)?