2014-01-11 71 views
4

我的代码来设置网站图标看起来是这样的:有没有办法指定一个favicon而不使用图片?

<link rel="shortcut icon" href="/Images/favicon.png"> 
    <link rel="shortcut icon" href="/Images/favicon.ico"> 
    <link rel="apple-touch-icon" sizes="114x114" href="/Images/apple-touch-icon-retina.png"> 
    <link rel="apple-touch-icon" sizes="72x72" href="/Images/apple-touch-icon-ipad.png"> 
    <link rel="apple-touch-icon" href="/Images/apple-touch-icon.png"> 

我使用的矢量图标无处不在我的应用程序现在。

有谁知道是否有方法可以指定浏览器用作矢量图标的图标?

回答

1

这是not supported by any browser at this time所以你不能这样做。

+1

这可能听起来像是过度杀伤(它可能是!),但只是为了完整性 - 他可能没有设置为“favicon”(+无论),由服务器处理的路线,矢量文件被读取,栅格化并作为二进制流返回? :) Moo“矫枉过正是我的中间名”果汁。 –

相关问题