简体   繁体   English

Twitter引导程序favicon.ico

[英]Twitter Bootstrap favicon.ico

I am working on a site using the one of the twitter bootstrap templates and my JavaScript console is complaining that it is missing: 我正在使用一个Twitter引导程序模板之一在一个网站上工作,而我的JavaScript控制台抱怨缺少它:

 favicon.ico

 ie-emulation-modes-warning.js

I downloaded all of the Bootstrap files from the Bootstrap website. 我从Bootstrap网站下载了所有Bootstrap文件。 What are these files and do I need them? 这些文件是什么,我需要它们吗?

If so, where can I get them? 如果是这样,我在哪里可以得到它们?

Edit: Thanks guys! 编辑:谢谢大家! Looked into Favicons and didn't realize that is what they are! 看着Favicons,却没有意识到那是事实! So simple! 很简单! lol 大声笑

By default, browsers look for favicons in your site's root directory. 默认情况下,浏览器会在您网站的根目录中查找收藏夹图标。 You can use favicon generators online, which (by standard) create 16x16 pixel png-like objects that are used as your site's icon on a browser tab, etc. Just make one of those and drop it in your root directory. 您可以在线使用favicon生成器,这些生成器(按标准)会创建16x16像素png类对象,这些对象将用作浏览器选项卡上站点的图标,等等。只需将其中一个放置在根目录中即可。

If that doesn't work, you may want to use your inspector (assuming you're using chrome), right click > inspect element > console (or network), and look there to see where your template is looking for the favicon. 如果这不起作用,则可能要使用检查器(假设您使用的是chrome),右键单击>检查元素>控制台(或网络),然后在此处查看模板在哪里寻找图标。 Just drop the generated .ico file in that folder. 只需将生成的.ico文件拖放到该文件夹​​中即可。

For the JS file, you may be able to find it online, download it, use the inspector again, and drop it wherever your browser is looking for it. 对于JS文件,您可能可以在线找到,下载,再次使用检查器,并将其放在浏览器中的任何位置。 This is good for performance—missing files slow roundtrip requests down. 这对性能很有好处-丢失文件会降低往返请求的速度。

It's something browsers look for by default. 这是浏览器默认查找的东西。 Nothing to do with Bootstrap 与Bootstrap无关

http://en.wikipedia.org/wiki/Favicon http://en.wikipedia.org/wiki/Favicon

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM