Home >Web Front-end >HTML Tutorial >The scroll bar takes up the width and causes the page to be misaligned_html/css_WEB-ITnose
As the title says, a div block contains many small div blocks in a floating layout (each row displays two small divs). The width is fixed. It displays normally when there is no scroll bar. When there is a scroll bar, because the width is occupied, So each row only displays a small div. How should this situation be handled?
Why are there so few people now?
Fixed div block width
Fixed div block width
The width of the parent page and the child div are both fixedI have encountered this situation, and finally set the scroll bar not to display
Display each line For the two div blocks, why not use 100% format? Use fixed width. . .
Percent adaptive. . . .
Each line displays two div blocks. Why not use the hundred percent format? Use fixed width. . .
Percent adaptive. . . .