如何自定义 Safari「个人收藏」中的网站图标? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
dennisdo
V2EX    Safari

如何自定义 Safari「个人收藏」中的网站图标?

  •  
  •   dennisdo 2015-01-20 10:49:15 +08:00 14283 次点击
    这是一个创建于 3918 天前的主题,其中的信息可能已经有所发展或是发生改变。

    某些网站的图标模糊不清,某些干脆无法自动生成。希望能够了解该如何自定义,十分感谢!

    8 条回复    2016-04-10 09:21:42 +08:00
    dennisdo
        1
    dennisdo  
    OP
       2015-01-20 10:54:43 +08:00
    nilennoct
        2
    nilennoct  
       2015-01-20 11:13:52 +08:00 via iPad
    是不是 `<link rel="shortcut icon" href=“xxx.png”>` ?
    dennisdo
        3
    dennisdo  
    OP
       2015-01-20 11:38:06 +08:00
    @nilennoct 可否稍微指点一下具体方法?
    abelyao
        4
    abelyao  
       2015-01-20 11:47:28 +08:00
    楼主是想作为一个用户,统一各网站的图标吗?那是不行的。
    如果你是网站主,想定义自己网站的图标,那么看 2 楼。
    dennisdo
        5
    dennisdo  
    OP
       2015-01-20 12:40:49 +08:00
    @abelyao 是想做为用户自定义网站图标……感谢 :)
    nilennoct
        6
    nilennoct  
       2015-01-20 13:12:42 +08:00
    @dennisdo 因为HTML里也没其他定义网站图片的标签了,又不像用了iOS专用的属性,所以感觉像是。你可以在`<head>`标签里加一行`<link rel="shortcut icon" href=“xxx.png”>`试试,建议用高分图测试看看清晰度,顺便在根目录也放个`favicon.ico`图标?
    nilennoct
        7
    nilennoct  
       2015-01-20 13:16:03 +08:00
    rel="icon"

    Defines a resource for representing the page in the user interface, usually an icon (auditory or visual one).

    The media, type and sizes attributes allow the browser to select the most appropriate icon in its contex. If several resources match, the browser will select the last one declared, in tree order. As these attributes are merely hints, and the resources may be non-appropriate upon further inspection, the browser will then select another one, if appropriate.

    Note: Apple's iOS do not use this link type, nor the sizes attribute, like others mobile browsers do, to select a webpage icon for Web Clip or a start-up placeholder. Instead it uses the non-standard apple-touch-icon and apple-touch-startup-image respectively.

    The shortcut link type is often seen before icon, but this link type is non-conforming, ignored and web authors must not use it anymore.

    > https://developer.mozilla.org/fr/docs/Web/HTML/Link_types
    HanningWu
        8
    HanningWu  
       2016-04-10 09:21:42 +08:00
    见知乎用户 Ryan Meng 的回答: https://www.zhihu.com/question/30099137/answer/65719091
    关于     帮助文档     自助推广系统     博客     API     FAQ     Solana     2333 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 26ms UTC 15:54 PVG 23:54 LAX 08:54 JFK 11:54
    Do have faith in what you're doing.
    ubao snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86