JavaScript检测浏览器高度
function browserHeight(){ var headerHeight = $(window).height(); $(".header").css('height',headerHeight); // I wanted to subtract pixels from this value, e.g. change 970px to 920px }; $(document).ready(browserHeight);
JavaScript检测浏览器高度
function browserHeight(){ var headerHeight = $(window).height(); $(".header").css('height',headerHeight); // I wanted to subtract pixels from this value, e.g. change 970px to 920px }; $(document).ready(browserHeight);