jerain
V2EX  ›  问与答

手机浏览器中将一个网页 “添加到主屏幕”,如何指定图标?

  •  
  •   jerain · Dec 7, 2015 · 3985 views
    This topic created in 3879 days ago, the information mentioned may be changed or developed.
    我记得几年以前 @livid 提供过方法,没搜到
    上面的问题不仅对 iOS ,希望 Android 下也有效 ... 请有办法的同学帮忙 :)
    1 replies    2015-12-07 15:41:24 +08:00
    coraline
        1
    coraline  
       Dec 7, 2015   ❤️ 1
    <link rel="apple-touch-icon-precomposed" sizes="144x144" href="http://guo.lu/wp-content/themes/Diaspora/static/144.png">
    <link rel="apple-touch-icon-precomposed" sizes="114x114" href="http://guo.lu/wp-content/themes/Diaspora/static/114.png">
    <link rel="apple-touch-icon-precomposed" sizes="72x72" href="http://guo.lu/wp-content/themes/Diaspora/static/72.png">
    <link rel="apple-touch-icon-precomposed" href="http://guo.lu/wp-content/themes/Diaspora/static/57.png">
    <link rel="icon" type="image/png" href="http://guo.lu/wp-content/themes/Diaspora/static/32.png" />

    我在网站是这样加的, iOS 有效,后面发现高版本的 Android chrome 也有效
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3735 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 00:42 · PVG 08:42 · LAX 17:42 · JFK 20:42
    ♥ Do have faith in what you're doing.