Home > Web Front-end > HTML Tutorial > I just learned html programming and encountered a problem_html/css_WEB-ITnose

I just learned html programming and encountered a problem_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:24:55
Original
1027 people have browsed it

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.

Reply to discussion (solution)

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template