Reason
display: flex
declaration in the html
element enables the flex context for all the direct children of html
.
As no flex-direction
and flex-wrap
properties declared, their default values would get applied on html
.
html {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
}
Solutions
Solution 1
Add flex-direction: column
declaration to html
element
Solution 2
Add width: 100%
declaration to body
element
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…