float floats
Width can be set to the width of the floating element;
In CSS, any element can float. Floating element generates a block-level box, regardless of what element itself.
float will float div departing limit the scope of block elements, similar to display: inline / block, float consistent with the scope of its definition text or image size (i.e., it depends on the font or font-size picture heigh, width) similar in bolder range.
Example:
![6705565-b13c0a89763d60db.png](https://upload-images.jianshu.io/upload_images/6705565-b13c0a89763d60db.png)
Its usual value inherit, right, left
--inherit value is inherited from its parent, such as its definition
<div style="float:right">
<div style="float:inherit">
</div>
</div>
The second <div> tag float is inherited values right first "div" in
——right、left