How can I keep the web page I designed from changing as the window changes? . .
margin:auto;
Try to use percentages when setting position or width
It depends on how you want to display your page.
1. If you want your page to change with the size of the window, it is a dynamic layout, which means you need to write the width attribute of the page as a percentage.
2. If you don’t want your page to change according to the change of your window, just set the overall width of the page and center it.
Use adaptive layout. responsive layout
<div style="width:950px;margin:0 auto"><div style="background:#09F;float:left;width:400px">44444444444444</div><div style="background:red">33333333333333</div><div style="background:#F30;float:left;width:600px">22222222222222</div><div style="background:#FFF">11111111111111</div></div>
table layout can be achieved
<table style="width:100%;height:100%"></table>
for pages that do not want to be changed The element uses CSS to fix the width and height so that the layout will not be messy when the window changes. However, if the window is too small, scroll bars will appear