Created
May 1, 2019 19:33
-
-
Save DmitriBarannyk/8de0cda6222e613f9ad1292c2c8d2ff3 to your computer and use it in GitHub Desktop.
window height
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hightDetect() { | |
$(".main_head").css("height", $(window).height());//масштабирование на всю высоту окна браузера | |
}; | |
hightDetect(); //масштабирование при изменении размера экрана | |
$(window).resaize(function() { | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
function heightDetect() {
$(".main_head").css("height", $ (window).height());
};
heightDetect();
$(window).resize(function() {
heightDetect();
});