Home > Web Front-end > HTML Tutorial > The page deforms after the browser is reduced_html/css_WEB-ITnose

The page deforms after the browser is reduced_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:40:52
Original
1842 people have browsed it

When we lay out the outer layer of DIV, we sometimes use width:100%;

.headDiv{

width: 100%;

}

When we shrink the browser, the layout will deform;

At this time we change it to

.headDiv{

width: 100%;

min-width:1360px; /*Give the minimum fixed value,*/

}

When our browser is larger than 1360px

It will be 100% adapted. If the browser is reduced to 1360px, the layout will be fixed according to the minimum value min-width

Related labels:
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