-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[html] 第73天 favicon.ico有什么作用?怎么在页面中引用?常用尺寸有哪些?可以修改后缀名吗? #513
Comments
作用:标签页左上角图标 |
作用:favicon 也叫收藏夹图标,我们经常从网页标签中看到这个图标,但它的作用往往不仅如此,favicon的存在能够让我们更加容易区分浏览器收藏夹中的内容。并且favicon 在一定程度上减轻服务器的流量带宽占用,一般为了提高网站的可用性,我们都会为自己的网站创建一个自定义的404错误文件,在这种情况下,如果网站没有相应的favicon.ico文件,每当有用户收藏网站/网页时, Web服务器都会调用这个自定义的404文件,并在网站的错误日志中记录。这显然是应该予以避免的。 引用方式: 尺寸:1616 3232 |
|
网站 favicon 图标favicon.ico 一般用于作为缩略的网站标志,它显示在浏览器的地址栏或者标签上。目前主要的浏览器都支持 favicon.ico 图标。 1、制作favicon图标
2、使用favicon图标
在html 页面里面的 元素之间引入代码 <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> 常用尺寸: 作者:Jane_xxxxxy链接:https://juejin.cn/post/6855610710932586510 |
|
第73天 favicon.ico有什么作用?怎么在页面中引用?常用尺寸有哪些?可以修改后缀名吗?
The text was updated successfully, but these errors were encountered: