tomheng
V2EX  ›  问与答

同志们,网页的滚动条滚动不到底部是什么原因啊?

  •  
  •   tomheng · Apr 6, 2012 · 5009 views
    This topic created in 5330 days ago, the information mentioned may be changed or developed.
    如下图所示滚动条有一段就是滚动不到最底下,而且也没有什么js错误,想了好长时间想不出是什么原因。
    '
    4 replies  •  1970-01-01 08:00:00 +08:00
    holystrike
    holystrike
    Apr 6, 2012
    1
    看起来像是onscroll事件的问题
    检查一下监听这个事件的相关代码
    yijian166
    yijian166
    Apr 6, 2012
    2
    嗯,之前遇到过这个问题,可能是css中float的浮动问题,因为如果js生成的滚动条代码和本身的滚动内容一块被浮动定位的话,就会产生这个问题。
    tomheng
    tomheng
    OP
    Apr 6, 2012
    3
    @yijian166
    @holystrike 是和js有关,因为我关闭了js就可以滚动到底部了,但是还没有没有看出是什么问题引起的。
    yijian166
    yijian166
    Apr 25, 2012
    4
    @tomheng 因为是js参与浮动了,你更改布局方式,试试~~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4490 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 141ms · UTC 02:59 · PVG 10:59 · LAX 18:59 · JFK 21:59
    ♥ Do have faith in what you're doing.