How to get it before, how to get it again. It’s just that the width and height now look a little different from the previous width and height
Transform only changes the "look" inside the element, but the element itself is still a rectangle and will always be a rectangle. The space occupied by the element will become the rotated width and height. I wonder if this is the space you are talking about?
I have tried many methods, but this method is the only one that works and I have learned a lot
The width and height will not be affected after rotation
Personal opinion, not necessarily correct.
How to get it before, how to get it again. It’s just that the width and height now look a little different from the previous width and height
Transform only changes the "look" inside the element, but the element itself is still a rectangle and will always be a rectangle. The space occupied by the element will become the rotated width and height. I wonder if this is the space you are talking about?
https://jsfiddle.net/qichengzx/zkuucyvj/