No setting overflow: line-height beyond the range of the box in the case of the hidden

When the parent element is provided with overflow: when the case hidden, the set value of the line-height exceeds a parent element a box range, the contents of which are hidden and not provided overflow: hidden when the value when line-height of the generally beyond the scope of the parent element box, which displays the contents of the following elements, but due to some different element of the following conditions, the contents of which are sometimes masked.

The first case: The following elements have a background color and positioning is relative :( must be positioned, if with only the background color will not be hidden)

 

 The second situation: The following elements are covered with pictures (can not locate), note the place was covered with pictures, where there is no picture does not hide its contents.

 

--------------------------------------- sustained attention to such problems ------ --------------------------------

Guess you like

Origin www.cnblogs.com/NIFS/p/12658930.html