Browser
Just like the title. . . . I am a newbie, I encountered the same problem at the beginning. question.
When the browser becomes smaller, the web page will be deformed.
Just use a big DIV to wrap all the tags.
Isn’t it enough to specify the width? 》
body{width:100px;
height:100px;
margin-left:auto;
margin-right:auto;}
That’s it
Don’t use pixel PX
Use PT
Imagine using a set of templates from PC to mobile phone... it’s difficult
Put all the content on the web page into
Put all the content on the web page into
The author's language is not good enough, "prevent... from moving the position"?
I don’t know whether you want the elements to move or not to move when the browser becomes smaller.
To move, use relative length units.
If you don’t want to move, use absolute length units.