Scroll.left is prompted in IE8 as "cannot get undefined or null referenced attribute" left ""

problem description

has considered the compatibility issue, but the same code only writes this part of the function that can be run on IE8. The main reason is that it does not understand which element is undefined, so that it is impossible to get

.

the environmental background of the problems and what methods you have tried

clipboard.png

clipboard.png

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Dec.27,2021

scroll () what is this? try


scroll is a function call, then whether the function returns an object, and the object contains the left property
clipboard.png

Menu