隨筆-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 閱讀(5210) 評論(1)  編輯  收藏 所屬分類: JQuery

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

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


          網站導航:
           
          主站蜘蛛池模板: 武汉市| 舟山市| 剑阁县| 佛冈县| 乳山市| 鄂伦春自治旗| 色达县| 新巴尔虎左旗| 德格县| 花莲市| 南丰县| 博白县| 北流市| 镇安县| 甘洛县| 庆城县| 三江| 香港| 定西市| 兰坪| 江华| 宁强县| 泌阳县| 锡林郭勒盟| 宁武县| 榆林市| 高邮市| 城步| 龙海市| 三都| 溧阳市| 黄龙县| 普兰店市| 无为县| 沿河| 牙克石市| 合江县| 姚安县| 新营市| 常山县| 太保市|