我正在構建一個界面以查看PDF文檔(在Chrome中)的全部列表,其中全部爲<embed>
s。如何在沒有錯誤或警告的情況下在PDF中嵌入PDF
<embed width="100%" height="100%" name="plugin" src="http://example.com/path/to/pdf/11749" type="application/pdf">
它工作正常,但控制檯填補了這個(每個嵌入PDF):
Resource interpreted as Document but transferred with MIME type application/pdf: "http://example.com/path/to/pdf/11749".
我見過這個問題問,但從來沒有充分的回答。我不想安裝瀏覽器插件或強制下載。
這是不是一個錯誤的警告。 – Musa