Eliminating the floating method

1.css with clear: both, means that the element does not occur around the floating element

2. Add the float block elements, the block-level elements provided clear: both

3. pseudo-element: after, adding the last element in the parent element of a block-level non-display

4. overflow, the attribute may be a value other than visible

Details link: https://blog.csdn.net/u012207345/article/details/78279961

Guess you like

Origin www.cnblogs.com/fur-mat/p/11316851.html