The display displays block, after the element floats in css, but why does it behave more like an inline block element?

After

element floats, display is block . If the width and height are not set, the width of block-level elements will shrink, which behaves more like inline block elements.

so why does display show block instead of inline-block after floating?

Jan.21,2022

suggest that you can take a look at Zhang Xinxu's explanation of float.
https://www.zhangxinxu.com/wo.

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-1b3af96-34623.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-1b3af96-34623.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?