Home >Web Front-end >CSS Tutorial >Several properties of CSS display, float, clear, overflow, visibility
http://colobu.com/2014/08/28/CSS-display-float-clear-overflow-visibility/
display :block (the function is to display the row attribute label as a block attribute label, and the width and height can be set);
display: inline (the function is to display the block attribute label as a row attribute label, and the width and height cannot be set for the block attribute label at this time) ; The difference between display:none and display:none is that the latter will not occupy that position, and the next element will directly cover it, while the former will occupy that layout, but does not display the content and is blank; and when downloading, display:none will Elements that are not displayed will not be downloaded, but visibility: hidden will download elements that are not displayed;
float (floating, still subject to document flow restrictions) can be set after the row label float Its width and height
right: Right float
clear(
Clear floats
left: Not allowed There are floating objects on the left
right: Floating objects on the right are not allowed
overflow (overflow)
hidden: Hide beyond content
scroll: Always display scroll bars
visibility(visible)
hidden: Object hidden
Differences in several image formats:
==============
1. Block-level elements: block element
Every By default, block-level elements occupy one row of height. Once a block-level element is added to a row, other elements cannot be added (except after float). When two block-level elements are edited continuously, they will automatically wrap and display on the page. Block-level elements can generally nest block-level elements or inline elements; Block-level elements generally appear as containers to organize structures, but this is not always the case. Some block-level elements, such as