我有這樣的jQuery代碼的偉大工程: $(document).scroll(function(){
if ($(this).scrollTop()>175){
// animate fixed div to small size:
$('header').stop().animate({ height: 90 },100);
} else {
所以我運行媒體查詢和驗證碼: //Check different widths as different browsers report it differently
if ($(window).width()!==0) {
width = $(window).width();
}
else if (window.innerWidth!==0) {
width = win