dennisdo
V2EX  ›  Safari

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

  •  
  •   dennisdo · Jan 20, 2015 · 14691 views
    This topic created in 4162 days ago, the information mentioned may be changed or developed.

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

    8 replies    2016-04-10 09:21:42 +08:00
    nilennoct
        2
    nilennoct  
       Jan 20, 2015 via iPad
    是不是 `<link rel="shortcut icon" href=“xxx.png”>` ?
    dennisdo
        3
    dennisdo  
    OP
       Jan 20, 2015
    @nilennoct 可否稍微指点一下具体方法?
    abelyao
        4
    abelyao  
       Jan 20, 2015
    楼主是想作为一个用户,统一各网站的图标吗?那是不行的。
    如果你是网站主,想定义自己网站的图标,那么看 2 楼。
    dennisdo
        5
    dennisdo  
    OP
       Jan 20, 2015
    @abelyao 是想做为用户自定义网站图标……感谢 :)
    nilennoct
        6
    nilennoct  
       Jan 20, 2015
    @dennisdo 因为HTML里也没其他定义网站图片的标签了,又不像用了iOS专用的属性,所以感觉像是。你可以在`<head>`标签里加一行`<link rel="shortcut icon" href=“xxx.png”>`试试,建议用高分图测试看看清晰度,顺便在根目录也放个`favicon.ico`图标?
    nilennoct
        7
    nilennoct  
       Jan 20, 2015
    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 context. 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  
       Apr 10, 2016
    见知乎用户 Ryan Meng 的回答: https://www.zhihu.com/question/30099137/answer/65719091
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2728 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 65ms · UTC 15:37 · PVG 23:37 · LAX 08:37 · JFK 11:37
    ♥ Do have faith in what you're doing.