显示PDF文件的图标 [英] Display favicon for PDF files
问题描述
我正在一个带有一些PDF文件的Drupal网站上,我在一个新窗口中打开一个PDF文件.使用Acrobat Reader插件在浏览器中打开文件,但未显示网站图标.应该怎么做才能显示收藏夹图标?
I am working on a Drupal site with some PDF files where I am opening a PDF file in a new window. The files are getting opened in the browser with the Acrobat Reader plugin but the favicon is not getting displayed. What should be done to show the favicon?
推荐答案
如果在iframe
中显示PDF文件,则浏览器应显示站点范围的收藏夹图标,但您在外部应用程序中不走运. Acrobat Reader不使用Favicons.
If you show the PDF file in an iframe
, the browser should show the site-wide favicon, but you're out of luck in an external applications. Acrobat Reader doesn't use Favicons.
更新现在可以按照以下@ s1m0n1stv4n答案将favicon.ico放置在您网站的根目录中
UPDATE This is now possible by placing favicon.ico in the root directory of your website as per @s1m0n1stv4n answer below
这篇关于显示PDF文件的图标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!