HTML with the change of the window, why not change the layout to zoom in and out

problem description

HTML with the change of the window, why not change the layout to zoom in and out

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

 1024*768


 /    

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


 
Dec.28,2021

Why should the page width and height be controlled in the background? you can use the responsive layout at the front end. If you look at the page with developer tools, there is too little information


after the dom element in html is loaded, do you call the set width height?


try the rem unit layout


responsive layout. What framework does your company use? For Vue, there are many responsive layouts for elementUI. If there is no frame, you can take a look at bs, and do not give a fixed value for width and height. You can also use rem or percentage

.
Menu