With regard to the interface that uses floats to achieve left and right layout, use clear:both to clear the problem of height anomalies caused by floats.

The left and right layout of

interface is often seen in daily development. It was normal to use positioning before. Recently, floating was used to achieve left and right layout. When using clear:both to clear floats, a strange problem was found. The problem is described as follows:

clipboard.png

clear:both:

clipboard.png

it is abnormal to use clear:both to clear floating elements, which is as high as body content. If you set overflow:hidden to the parent, it will not cause this problem. Ask the bosses of css how to solve this problem

.
Css
Mar.14,2021
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e5cc90-456d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e5cc90-456d4.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?