derpc
V2EX  ›  V2EX

V2 移动端页面 滑动返回到列表页还停留在原始位置怎么实现的?

  •  
  •   derpc · Jun 18, 2016 · 3137 views
    This topic created in 3638 days ago, the information mentioned may be changed or developed.

    最近在学移动端页面开发。
    发现一问题,我做的站从详情页返回列表页时,总是会跳到列表页顶部。
    网上找了好几种解决办法感觉都不理想。
    V2 的就没有这种问题,丝滑般流畅。各位大牛有谁知道怎么实现的吗?

    5 replies    2016-06-23 09:23:59 +08:00
    derpc
        1
    derpc  
    OP
       Jun 18, 2016
    补充:
    分析了一下发现,页面有固定位置的 header 和 footer ,只有 content 区域加了滚动。是这个原因造成的滑动返回会跳到顶部吗?
    kamal
        2
    kamal  
       Jun 18, 2016   ❤️ 1
    kaner
        3
    kaner  
       Jun 18, 2016
    http 200 (FROM CACHE)
    derpc
        4
    derpc  
    OP
       Jun 18, 2016
    @kamal 谢谢,学习了。
    @kaner 试过,微信浏览器里好像不行。
    horsley
        5
    horsley  
       Jun 23, 2016
    ios 的话, navigation controller push 啊,而不是在同一个 webview 里面加载新网页
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3636 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 10:31 · PVG 18:31 · LAX 03:31 · JFK 06:31
    ♥ Do have faith in what you're doing.