To scale down, I suggest you try to make a mobile page. I guess you know that your problem has nothing to do with this, but let me talk about it. If you want to scale down, percentage layout, or rem layout, flex and many other new technologies Can do it.
Given your question, it is estimated that you are still new to the front-end.
Learn about: box-sizing css style, it will solve your problem
Tell me the reason for your problem: insufficient width causes floating, or inline elements and inline block elements move down. Under normal circumstances, the downward movement will not occur, so in fact, the element width and height change when you zoom the page, and the ultimate way to solve this change: set box-sizing
To scale down, I suggest you try to make a mobile page. I guess you know that your problem has nothing to do with this, but let me talk about it. If you want to scale down, percentage layout, or rem layout, flex and many other new technologies Can do it.
Given your question, it is estimated that you are still new to the front-end.
Learn about: box-sizing css style, it will solve your problem
Tell me the reason for your problem: insufficient width causes floating, or inline elements and inline block elements move down. Under normal circumstances, the downward movement will not occur, so in fact, the element width and height change when you zoom the page, and the ultimate way to solve this change: set box-sizing