JQuery: dynamic height() with window resize()

前端 未结 4 1659
再見小時候
再見小時候 2021-01-31 05:00

I\'m having an issue identical to this poster: Jquery problem with height() and resize()

But the solution doesn\'t fix my issue. I have three stacked divs, and I want to

4条回答
  •  清酒与你
    2021-01-31 05:08

    To see the window height while (or after) it is resized, try it:

    $(window).resize(function() {
    $('body').prepend('
    ' + $(window).height() - 46 + '
    '); });

提交回复
热议问题