skydiver
V2EX  ›  V2EX

为什么主页上的链接中会有一个类似#reply37的锚点,但是点进去之后浏览器却不会自动滚动到对应回复的位置?

  •  
  •   skydiver · May 12, 2012 · 3991 views
    This topic created in 5288 days ago, the information mentioned may be changed or developed.
    是有别的作用吗?还是我打开的方式不对。。。
    16 replies  •  1970-01-01 08:00:00 +08:00
    zern
    zern
    May 12, 2012
    1
    可能是未来的功能吧
    VeryCB
    VeryCB
    May 12, 2012
    2
    /t/7132

    一年前就有这个疑问,不过没人理...
    VeryCB
    VeryCB
    May 12, 2012
    3
    一定是我们打开的方式不对,恩。
    dianso
    dianso
    May 12, 2012
    4
    坐姿不正确导致的这个问题。
    loading
    loading
    May 12, 2012❤️4
    5
    因为代码中根本就没这个锚点,不信你自己看!
    这是用来应对浏览器缓存的。
    浏览过的链接是不一样颜色的,当有人给帖子增加回复时,猫就变成另一只啦,颜色又能恢复到未浏览了。
    注意看下那个回复的数字颜色就知道了!~
    Insomnia
    Insomnia
    May 12, 2012
    6
    这个是为了让右侧那个回复数字变色,让你再你看过一次后,又有了新的回复。
    并不是为了跳转到指定回复楼层的。
    tioover
    tioover
    May 12, 2012
    7
    好点子啊!
    skydiver
    skydiver
    OP
    May 12, 2012
    8
    @loading 恍然大悟ing,这办法太漂亮了~ @Livid
    skydiver
    skydiver
    OP
    May 12, 2012
    9
    @Livid 刚才没有艾特上。。。
    thedevil7
    thedevil7
    May 12, 2012
    10
    @skydiver 这两个 @ 有什么不一样吗?
    skydiver
    skydiver
    OP
    May 12, 2012
    11
    @thedevil7 上面的没有识别成链接。。。
    thedevil7
    thedevil7
    May 12, 2012
    12
    @skydiver 是因为什么呢? 好奇怪, 我看了好几遍, 感觉都是一模一样的呀.
    xdata
    xdata
    May 12, 2012
    13
    @thedevil7 因为前面那个@的前面还跟了个全角的空格“ ”。
    thedevil7
    thedevil7
    May 13, 2012
    14
    @xdata 这是 BUG 吗?
    thcode
    thcode
    May 13, 2012
    15
    原来如此,一直以为是自己打开的方式不对……
    loo2k
    loo2k
    May 13, 2012
    16
    @loading hiahia 很贴心的设计,赞一个。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 14:36 · PVG 22:36 · LAX 06:36 · JFK 09:36
    ♥ Do have faith in what you're doing.