Browse Source

禁止页面出现滚动条

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

+ 4 - 4
screenH5/homeNew.html

@@ -192,7 +192,7 @@
 			}
     </style>
 	</head>
-	<body style="background: #F8F9FA;">
+	<body style="background: #F8F9FA;overflow-y: hidden;">
 		<div style="width: 100%;height: 100%;">
 			<!-- <div class="canvas" style="display: none;">
 				<div id="wine" style="height: 90%;">
@@ -386,12 +386,12 @@
 		<script type="text/javascript">
 			let hheight = document.body.clientHeight;
 			let cheight = document.body.offsetHeight;
-			
+
 			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);
-			
+
 			var url = window.location.href;
 
 			url = url.split('/')
@@ -468,7 +468,7 @@
 				return e.startsWith('windowHeight')
 			}) || ''
 			$(".swiper-container").css("height", windowHeight.substring(13, windowHeight.length));
-			console.log("获取网页高度",windowHeight.substring(13, windowHeight.length));
+			console.log("获取网页高度", windowHeight.substring(13, windowHeight.length));
 			//				$(".aaa").text(clientType.substring(11, clientType.length))
 			// let cardIp = getUrlParam('cardIp');
 			// console.log(cardIp)