javascript - Why do I set height: 100%; overflow: hidden; but the content and scroll bar still overflow. Please give me advice?
typecho
typecho 2017-06-28 09:24:00
0
6
1017

typecho
typecho

Following the voice in heart.

reply all(6)
代言

How about changing

height to an absolute value? And your screenshot overflow-y is auto. Why not use hidden

曾经蜡笔没有小新

The screenshot is not very clear. Who is it 100% based on?

某草草

I guess it’s because you used overflow: hidden and float at the same time.

It is necessary to understand the detailed explanation of CSS BFC and the origin of float and overflow: hidden. We have cleared the floats together in those years.
I will post some related questions for you. Please understand more and find solutions:
In CSS Why can overflow:hidden clear the impact of float? What is the principle?

为情所困

The outermost p needs to have a fixed height, and ul is the height: 100%;

代言

Is your ulthere is something at the same level? height: 100% will inherit the height of the parent. If ulhas content at the same level, it will hold ul down. It is recommended to wrap a p suitable for the height on the outer layer, and write ulscroll inside the p

ringa_lee

height: 100% height is inherited from the upper layer

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template