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

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

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


          網站導航:
           
          主站蜘蛛池模板: 特克斯县| 新乡县| 景洪市| 叶城县| 多伦县| 罗甸县| 汽车| 余姚市| 琼结县| 手游| 瑞昌市| 边坝县| 江津市| 邮箱| 平陆县| 和龙市| 建德市| 含山县| 靖宇县| 扎赉特旗| 克什克腾旗| 北安市| 城市| 横山县| 绩溪县| 栾城县| 天等县| 土默特右旗| 仲巴县| 曲沃县| 湟源县| 常熟市| 东乡族自治县| 佛山市| 班玛县| 临城县| 涿州市| 徐汇区| 连江县| 舒城县| 临泉县|