博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
桌面图标每个上都带个空白页_创建带有数据的空白图标
阅读量:2516 次
发布时间:2019-05-11

本文共 962 字,大约阅读时间需要 3 分钟。

桌面图标每个上都带个空白页

I was recently setting up a virtual host and diving into development when I needed to debug a JavaScript issue.  One thing that started annoying me right away was the console message notifying me that the favicon.ico file couldn't be found.  I hadn't put one there and had no desire to...but that damn message was bugging the hell out of me.  I did a quick search and found a tiny data URL snippet to include a blank favicon within the page.

最近,当我需要调试JavaScript问题时,我正在设置一个虚拟主机并开始开发。 立即使我烦恼的一件事是控制台消息,通知我找不到favicon.ico文件。 我没有把它放在那里,也不想……但是那该死的消息使我烦恼。 我进行了快速搜索,发现一个很小的数据URL片段在页面内包含一个空白的图标。

HTML (The HTML)

The empty favicon is created with the LINK element:

空的收藏夹图标是使用LINK元素创建的:

Essentially, instead of linking the external ico file, the image data is placed in the HREF attribute.  Cool, huh?  No more annoying messages and no need to add another file to the repository.

本质上,图像数据放置在HREF属性中,而不是链接外部ico文件。 酷吧? 不再有烦人的消息,也无需向存储库添加其他文件。

翻译自:

桌面图标每个上都带个空白页

转载地址:http://xvvwd.baihongyu.com/

你可能感兴趣的文章
解决 Visual Studio 点击添加引用无反应的问题
查看>>
通过镜像下载Android系统源码
查看>>
python字符串格式化 %操作符 {}操作符---总结
查看>>
windows 不能在 本地计算机 启动 Apache
查看>>
iOS开发报duplicate symbols for architecture x86_64错误的问题
查看>>
Chap-6 6.4.2 堆和栈
查看>>
【Java学习笔记之九】java二维数组及其多维数组的内存应用拓展延伸
查看>>
C# MySql 连接
查看>>
sk_buff Structure
查看>>
oracle的级联更新、删除
查看>>
多浏览器开发需要注意的问题之一
查看>>
Maven配置
查看>>
HttpServletRequest /HttpServletResponse
查看>>
SAM4E单片机之旅——24、使用DSP库求向量数量积
查看>>
从远程库克隆库
查看>>
codeforces Unusual Product
查看>>
hdu4348 - To the moon 可持久化线段树 区间修改 离线处理
查看>>
Activity的几种启动跳转方式
查看>>
ng-深度学习-课程笔记-2: 神经网络中的逻辑回归(Week2)
查看>>
正则表达式的搜索和替换
查看>>