There is the most common script for resizing:
function heightDetect() { $(".carousel").css("height", $(window).height()); } heightDetect(); $(window).resize(function(){ heightDetect(); }); Script checked, not the first time I use. But now there was a problem that I encountered for the first time. I want to make a "carousel" in full screen, when the page first loads, nothing happens, the script only works if CHANGE AT ONE PIXEL screen resolution! After updating the page, everything comes back.
Has anyone encountered this problem? Please tell me how to solve it?