if ((navigator.userAgent.indexOf('iPhone') < 0 && navigator.userAgent.indexOf('iPad') != -1) || navigator.userAgent.indexOf('iPod') < 0 || navigator.userAgent.indexOf('Android') < 0) { var footer = $("#footer"); var offset = footer.offset().top + footer.height(); var win_h = $(window).height(); if( offset < win_h){ footer.css({"position":"absolute", "bottom":"0"}); } } 1行目 pc以外には適用しない #footer { wi