Difference between $(window).width() vs $(document).width()

后端 未结 6 1022
灰色年华
灰色年华 2020-12-08 03:52

What is the major difference between $(window).width() vs $(document).width() in jQuery? Whether window denotes the browser and document represents

6条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-08 04:43

    Yes - width of window is width of browser window, and width of document is width of webpage.

提交回复
热议问题