隨筆-75  評論-193  文章-5  trackbacks-0
          var fixgeometry = function() {
              /* Some orientation changes leave the scroll position at something
               * that isn't 0,0. This is annoying for user experience. */
              scroll(0, 0);
              /* Calculate the geometry that our content area should take */
              var header = $(".header:visible");
              var footer = $(".footer:visible");
              var content = $(".content:visible");
              var viewport_height = $(window).height();
              
              var content_height = viewport_height - header.outerHeight() - footer.outerHeight();
              
              /* Trim margin/border/padding height */
              content_height -= (content.outerHeight() - content.height());
              content.height(content_height);
            }; /* fixgeometry */
            $(document).ready(function() {
              $(window).bind("orientationchange resize pageshow", fixgeometry);
            });
          posted on 2013-01-28 10:59 The Matrix 閱讀(5199) 評論(1)  編輯  收藏 所屬分類: JQuery

          評論:
          # 打發打發 2014-10-16 14:41 | 打發打發
          打發打發的  回復  更多評論
            

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 天峻县| 老河口市| 阿克陶县| 汪清县| 闻喜县| 南木林县| 玉田县| 和静县| 宁乡县| 兴安盟| 岑溪市| 南城县| 贵阳市| 贡觉县| 芒康县| 遵义市| 工布江达县| 登封市| 安阳市| 旌德县| 东港市| 大城县| 潞西市| 安龙县| 寻乌县| 诸暨市| 太谷县| 青神县| 禹城市| 乌兰县| 清镇市| 大洼县| 楚雄市| 北票市| 龙州县| 马关县| 浑源县| 涡阳县| 得荣县| 德江县| 纳雍县|