Browse Source

新增可视窗口高度

wuyongxiang 4 years ago
parent
commit
a09fa2e1fa
1 changed files with 5 additions and 1 deletions
  1. 5 1
      screenH5/homeNew.html

+ 5 - 1
screenH5/homeNew.html

@@ -387,6 +387,10 @@
 			let hheight = document.body.clientHeight;
 			let cheight = document.body.offsetHeight;
 			console.log("获取网页高度", hheight, cheight, window.screen.height);
+			console.log("document.body.offsetHeight: " + document.body.offsetHeight);
+			console.log("document.body.clientHeight " + document.body.clientHeight);
+			console.log("document.body.scrollHeight " + document.body.scrollHeight);
+			console.log("window.screen.availHeight " + window.screen.availHeight);
 			$(".swiper-container").css("height", window.screen.height);
 			var url = window.location.href;
 
@@ -635,7 +639,7 @@
 			// 	})
 			// });
 			$(".homeRenew").on("click", function() {
-					console.log("续费啊");
+				console.log("续费啊");
 			});
 			$('.helps').bind('click', function(e) {
 				stopPropagation(e);