Background: The pop-up layer plug-in (adaptive) implementation suddenly discovers when the visibility area height is obtained, whether document.documentElement.clientHeight or $ (window). Height () is not properly obtained, the code is not a problem;
Solution: Find the error point by Cosole.log Finding the $ (window). Height () Gets the unhealthy and equals $ (document). Height (); Finding data online is due to the absence of a correct HTML5 document declaration
Correct:<!DOCTYPE HTML> <HTML><!--document Content --</HTML>Error:<!DOCTYPE> <HTML><!--document Content --</HTML>$ (function () {Console.log ($ (window). Height ()) Console.log (Document.documentElement.clientHeight)})
The value obtained is not the same
Document.documentElement.clientHeight and $ (window). Height () does not get the height of the page visual area correctly