caipin 5 年之前
父節點
當前提交
ada51b3074
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      protected/view/receipt/receiptSummaryStatisticsByAgency.html

+ 2 - 2
protected/view/receipt/receiptSummaryStatisticsByAgency.html

@@ -144,7 +144,7 @@ function receiptYear(){
 $(document).ready( function () {
 $(document).ready( function () {
 	
 	
 	//var data = 
 	//var data = 
-	var bodyHeight=$(document.body).height()-200;
+	var wHeight=$(window).height()-200;
 	
 	
 	var table =$('#example').DataTable({
 	var table =$('#example').DataTable({
 		//data:data,
 		//data:data,
@@ -166,7 +166,7 @@ $(document).ready( function () {
     		 "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
     		 "sInfo": "显示第 _START_ 至 _END_ 项结果,共 _TOTAL_ 项",
     	},
     	},
     	
     	
-    	scrollY:        bodyHeight+"px",
+    	scrollY:        wHeight+"px",
         scrollX:        true,
         scrollX:        true,
         scrollCollapse: true,
         scrollCollapse: true,