问答详情
源自:9-20 网页尺寸offsetHeight

offsetHeight比clientHeight小

offsetHeight比clientHeight小   感觉有问题

提问者:莫小忘 2016-04-01 23:29

个回答

  • 霜花似雪
    2016-04-02 11:36:31
    已采纳

    http://img.mukewang.com/56ff3c950001946607520686.jpg

    offsetHeight=offsetTop+offsetBottom

    clientHeight=clientTop+clientBottom

  • Fstar
    2016-04-02 12:26:43

    offsetHeight = clientHeight + 滚动条 + 边框

    (有问题?)