Use css3 transform rotation to force the landscape screen, but the direction of the touch has not changed, what is the solution?

transform: rotate (90deg);

Jul.06,2021

you can try adding handling for touch events in js, judging the direction of sliding according to touch events, and then making corresponding changes to the page.


this scheme sounds unreliable. Why would you do that?

Menu