avatasia
V2EX  ›  问与答

请教下app.ft.com,添加到主屏幕后就没有地址栏了,这种效果怎么做呢?

  •  
  •   avatasia · Mar 22, 2012 · 4719 views
    This topic created in 5339 days ago, the information mentioned may be changed or developed.
    多谢。
    8 replies  •  1970-01-01 08:00:00 +08:00
    ksky
    ksky
    Mar 22, 2012
    1
    avatasia
    avatasia
    OP
    Mar 22, 2012
    2
    @ksky 貌似按照这个测试了一下,只是自动滚动一下,手动还是可以把地址栏滚下来的,ft的这个是根本没显示。
    lackrp
    lackrp
    Mar 22, 2012
    3
    avatasia
    avatasia
    OP
    Mar 22, 2012
    4
    @lackrp 这个赞
    linlis
    linlis
    Mar 22, 2012
    5
    <meta name="apple-mobile-web-app-capable" content="yes" />
    joynic
    joynic
    Mar 23, 2012
    6
    @linlis 有没有办法将网站添加到主屏幕之后,点击网站图标打开网页,然后点击文章链接,不要跳回到浏览器呢?
    avatasia
    avatasia
    OP
    Mar 23, 2012
    7
    @joynic 可以的,我已经做到了,需要加一个函数 原来就是截获 a 的onclick事件 把window.location 设置为href, return false。如果你的页面里有a是做hash跳转,需要过滤一下。
    joynic
    joynic
    Mar 24, 2012
    8
    @avatasia HI,具体怎样做呢?困扰好久了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4213 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:06 · PVG 09:06 · LAX 17:06 · JFK 20:06
    ♥ Do have faith in what you're doing.