search

Home  >  Q&A  >  body text

javascript - 为什么我页面上$(winodw).height() = $(document).height()?坐等答案

有朋友遇到过这样的问题吗?

巴扎黑巴扎黑2896 days ago226

reply all(2)I'll reply

  • 巴扎黑

    巴扎黑2017-04-10 17:03:52

    HTML第一行是不是没加<!DOCTYPE html>

    reply
    0
  • ringa_lee

    ringa_lee2017-04-10 17:03:52

    应该是1楼所说的,我测试了。没加,$(window).height()和$(document).height()是一样的。

    reply
    0
  • Cancelreply