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
WBOYOriginal
2016-06-24 11:40:521875browse

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

Statement:
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