The absolute position will become inline-block display

position: absolute and float implicitly change the display type, before regardless of what type of element (display: except none),
as long as the set position: absolute, float any one, will allow the elements to display: display inline-block in the way : length and width can be set, the default width of the parent element is not filled.

Guess you like

Origin www.cnblogs.com/sogeisetsu/p/11622040.html