$(window).on('load', function () { var innerHeight = window.innerHeight; //wrapは任意の値に変えてください。 $('.wrap').css('height', innerHeight + 'px'); });