大家都知道,修改网页地址栏图标只需要在网页的<head>节点中添加代码:<link rel="shortcut icon" href="/favicon.ico" />即可。
在SharePoint2010中,地址栏的图标是通过默认的母版页s“v4.master”来设定的。用SharePoint Designer打开一个网站的默认母版页,在页面的<head>节点中,有这样一条: <SharePoint:SPShortcutIcon runat="server" IconUrl="/_layouts/images/favicon.ico"/>,这句话就是用来指定SharePoint页面的地址栏图标的,_layouts/images/favicon.ico对应于SharePoint的14目录下的Template/Layouts/images/favicon.ico文件。
如果要更换SharePoint的所有页面的地址栏图标,只需要准备一个16*16的.ico图片,修改上述语句中的IconUrl即可。
由于浏览器的缓存机制,修改完之后如果不能直接看到效果,清空下浏览器的缓存。在IE中步骤是这样的:打开工具——Internet选项——在浏览历史记录区点击删除。
浙公网安备 33010602011771号