html
Web programming, when customers browse the website, different effects will be displayed due to the resolution of the display screen. The 1072*768 resolution screen should be the most. I want to put my web page in any other High resolution screen shows in between, what to do. For example, when I use a 22-inch monitor to browse csdn, the display is centered with blank spaces on both sides.Use percentage to control height and width sytle="width:100%;heigth:100%"
1st floor If you do that It’s hard to see when the screen is very wide. I want a fixed width of 1070. If the screen is wide, leave blanks on both sides. My current screen resolution is 1680*1050. When browsing csdn.net, the content is centered and blanks are left on both sides
Actually, it’s like this, #1 floor, you don’t need to adjust the size of your webpage to fit the screen, it will be ugly.
You just need to fix the page size and center it.
Similar to body{width:100px,margin:0 auto}
Use align plus width height to specify