Chrome on ios sometimes gets a window.innerHeight that is not the height of the viewport.

< H2 > question < / H2 >

I want to set the minimum height of the page to the height of the viewport, but I made a mistake in getting the height of the viewport, and the fixed dock at the bottom of the fixed is also wrong. Try using 100vh, but on ios"s safari, 100vh seems to be larger than a viewport.

< H2 > device < / H2 >

iPhone 7
Chrome 67.0.3396.87
IOS 11.2.6 (15D100)

< H2 > other < / H2 >

obtained by using the method given by http://www.daqianduan.com/378. is still incorrect;

Mar.25,2021
Menu