Use offsetHeight to get the height of the element and find it is an integer ,
But in the console of Google Chrome, you can see that the height actually has decimals,
Due to the precise scrolling operation, it must be precise, please help.
走同样的路,发现不同的人生
After looking at the source code of jq, I found that the height returned by getComputedStyle is accurate to decimals
After looking at the source code of jq, I found that the height returned by getComputedStyle is accurate to decimals