jerichowon
V2EX  ›  V2EX

将v2ex保存到iphone桌面后效果很特别嘛。

  •  
  •   jerichowon · Oct 12, 2011 · 5198 views
    This topic created in 5400 days ago, the information mentioned may be changed or developed.
    在iphone上将v2ex保存到桌面上以后,通过点击桌面图标没有直接打开safari,而是先打开了一个类似客户端的程序,这种效果很赞,请问是怎么实现啊?
    4 replies    1970-01-01 08:00:00 +08:00
    Paranoid
        1
    Paranoid  
       Oct 12, 2011
    http://www.falsepositives.com/index.php/2011/01/31/adding-favicons-for-moble-safari-web-sites-ipodiphoneipad/

    上次看到还有一个方法,图标用固定的一个名字,就不需要在head中指明,safari会自动提取。
    jerichowon
        2
    jerichowon  
    OP
       Oct 12, 2011
    @Paranoid 感谢,按照链接里面的方法已经实现功能了。

    用下面这句话可以设置显示在桌面上的图标:
    <link rel="apple-touch-icon" href="/customIcon.png"/>

    用下面这句话可以将状态栏最小化,达到v2ex的这种效果:
    <meta name="apple-mobile-web-app-capable" content="yes" />

    再次感谢@Paranoid
    Paranoid
        3
    Paranoid  
       Oct 12, 2011
    @jerichowon

    http://www.neoease.com/add-web-icon-to-home-screen-on-iphone-or-ipad/

    上次看到的是这篇文章,带图片的比较清楚。
    jerichowon
        4
    jerichowon  
    OP
       Oct 12, 2011
    @Paranoid 有图片更容易看懂,THX。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2722 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:05 · PVG 13:05 · LAX 22:05 · JFK 01:05
    ♥ Do have faith in what you're doing.