How to get an element the same height as browser resolution?

后端 未结 5 1862
误落风尘
误落风尘 2021-01-27 14:59

I am trying use jquery to set the height of an element to equal the users browser. Here is the code I got so far that\'s not working. Is it because I have a minimal height set

5条回答
  •  半阙折子戏
    2021-01-27 15:44

    You have to use jQuery(window).height(). Windows doesn't actually have a dynamic height css property that change with resolution.

提交回复
热议问题