favicon

Favicon not showing in Safari

假如想象 提交于 2020-05-27 04:28:09
问题 I've searched all over the internet already and I still don't know why the favicon wont show on safari, it shows ok on chrome and FF, I've tried these in the header: <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/> or this <link rel="shortcut icon" href="favicon.ico?23189123" type="image/x-icon"/> changed the favicon to 32 bits, or removed the WebpageIcons.db from safari library etc. and I check the website on browserstacks in case is my cache.. Is there anything else Im

How to get favicon by using beautiful soup and python

与世无争的帅哥 提交于 2020-05-13 06:23:07
问题 I wrote some stupid code for learning just, but it doesn't work for any sites. here is the code: import urllib2, re from BeautifulSoup import BeautifulSoup as Soup class Founder: def Find_all_links(self, url): page_source = urllib2.urlopen(url) a = page_source.read() soup = Soup(a) a = soup.findAll(href=re.compile(r'/.a\w+')) return a def Find_shortcut_icon (self, url): a = self.Find_all_links(url) b = '' for i in a: strre=re.compile('shortcut icon', re.IGNORECASE) m=strre.search(str(i)) if m

How to get favicon by using beautiful soup and python

£可爱£侵袭症+ 提交于 2020-05-13 06:21:19
问题 I wrote some stupid code for learning just, but it doesn't work for any sites. here is the code: import urllib2, re from BeautifulSoup import BeautifulSoup as Soup class Founder: def Find_all_links(self, url): page_source = urllib2.urlopen(url) a = page_source.read() soup = Soup(a) a = soup.findAll(href=re.compile(r'/.a\w+')) return a def Find_shortcut_icon (self, url): a = self.Find_all_links(url) b = '' for i in a: strre=re.compile('shortcut icon', re.IGNORECASE) m=strre.search(str(i)) if m

Refresh favicon in bookmarks (Firefox)

不羁的心 提交于 2020-05-09 20:29:08
问题 Few days ago, I've changed the favicon of my website: it works well when I open the website: My website is also in my bookmarks, but it shows the old favicon: I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far. Thanks! 回答1: There is a solution that works on every browser: go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well) force refresh ( Ctrl + F5 for most browsers, or manually)

Refresh favicon in bookmarks (Firefox)

佐手、 提交于 2020-05-09 20:28:51
问题 Few days ago, I've changed the favicon of my website: it works well when I open the website: My website is also in my bookmarks, but it shows the old favicon: I already had a look here, but answers did not solved my problem. The solution is probably very simple, but I have not found anything so far. Thanks! 回答1: There is a solution that works on every browser: go to www.yourwebsiteurl.com/favicon.ico (works for localhost as well) force refresh ( Ctrl + F5 for most browsers, or manually)

How to add a favicon to a Next.js static site?

余生长醉 提交于 2020-04-10 07:12:29
问题 I'm trying to add a favicon to a Next.js static site without much luck. I've tried customising the document with components from 'next/document' https://nextjs.org/docs/#custom-document A straight link to the favicon.ico file doesn't work because the file isn't included in the build and the href doesn't update to /_next/static/... Importing the image and adding to the link's href doesn't work either (see commented out lines). import React from 'react'; import Document, { Html, Head, Main,

How to add a favicon to a Next.js static site?

妖精的绣舞 提交于 2020-04-10 07:08:43
问题 I'm trying to add a favicon to a Next.js static site without much luck. I've tried customising the document with components from 'next/document' https://nextjs.org/docs/#custom-document A straight link to the favicon.ico file doesn't work because the file isn't included in the build and the href doesn't update to /_next/static/... Importing the image and adding to the link's href doesn't work either (see commented out lines). import React from 'react'; import Document, { Html, Head, Main,

性能优化的 ULBOX(收集-)

Deadly 提交于 2020-04-06 18:25:48
1. Yahoo性能优化 http://developer.yahoo.com/performance/rules.html 1、尽量减少HTTP请求个数——须权衡 合并图片(如css sprites,内置图片使用数据)、合并CSS、JS,这一点很重要,但是要考虑合并后的文件体积。 2、使用CDN(内容分发网络) 这里可以关注CDN的三类实现:镜像、高速缓存、专线,以及智能路由器和负载均衡; 3、为文件头指定Expires或Cache-Control,使内容具有缓存性。 区分静态内容和动态内容,避免以后页面访问中不必要的HTTP请求。 4、避免空的src和href 留意具有这两个属性的标签如link,script,img,iframe等; 5、使用gzip压缩内容 Gzip压缩所有可能的文件类型以来减少文件体积 6、把CSS放到顶部 实现页面有秩序地加载,这对于拥有较多内容的页面和网速较慢的用户来说更为重要,同时,HTML规范清楚指出样式表要放包含在页面的<head />区域内; 7、把JS放到底部 HTTP/1.1 规范建议,浏览器每个主机名的并行下载内容不超过两个,而问题在于脚本阻止了页面的平行下载,即便是主机名不相同 8、避免使用CSS表达式 页面显示和缩放,滚动、乃至移动鼠标时,CSS表达式的计算频率是我们要关注的。可以考虑一次性的表达式或者使用事件句柄来代替CSS表达式。

也做网页图标favicon.ico

拈花ヽ惹草 提交于 2020-03-23 06:04:32
也做了网页图标favicon favicon.ico 其实很简单,就用51la统计代码里面的那个“A”,用photoshop处理翻转成“V”存成jpg格式的。然后到 http://www.chami.com/html-kit/services/favicon/ 转换一下就可以了。 上传到网站根目录,原来是用也是这么简单,直接放在网站根目录里面就可以用了,没用之前还以为要进行设置之类呢。不过应该必须固定名字是favicon.ico。 还有其他一些好玩的小工具: http://www.viatop.cn/blog/show-197-1.htm 来源: https://www.cnblogs.com/analyzer/archive/2008/01/21/1046666.html