隨筆-75  評論-193  文章-5  trackbacks-0
            2012年5月14日
          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 @ 2013-01-28 10:59 The Matrix 閱讀(5205) | 評論 (1)編輯 收藏
          http://java.dzone.com/articles/hibernate-tuning-queries-using?page=0,0 
          posted @ 2012-05-14 14:28 The Matrix 閱讀(1223) | 評論 (0)編輯 收藏
          主站蜘蛛池模板: 志丹县| 清河县| 广水市| 阿合奇县| 九龙城区| 泽普县| 礼泉县| 棋牌| 苏州市| 喀喇| 虎林市| 登封市| 崇左市| 西贡区| 柯坪县| 长泰县| 西丰县| 方正县| 铁力市| 宁河县| 大关县| 邛崃市| 芜湖县| 土默特左旗| 云林县| 凌云县| 烟台市| 盐山县| 长顺县| 建始县| 宕昌县| 汉寿县| 平泉县| 襄城县| 内丘县| 济阳县| 龙陵县| 治多县| 三江| 沧源| 哈巴河县|