How to implement Classification in Css
This article mainly shows you "Css how to achieve classification", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "how to achieve classification in Css" this article.
I. Dimension operation
Height sets element height
Line-height sets row height
.p1 {width: 400px; line-height: normal;} .p2 {width: 400px; line-height: 200%;} .p3 {width: 400px; line-height: 50%;} align This is my web page This is my web page
This is my web page
This is my web page
Max-height sets the maximum height of elements
Max-width sets the maximum width of the element
.p1 {line-height: normal; max-width: 250px;}
Min-width sets the minimum width of the element
Min-height sets the minimum height of the element
Width sets element width
II. Classification operation
Clear sets whether the side of one element allows other floating elements
Cursor specifies the type of pointer that is displayed when pointing over an element
P {cursor: auto;} p {cursor: alias;} p {cursor: cell;}
Display sets whether and when elements are displayed
Li {display: inline;} Hello
Float defines in which direction the element floats
Position places the element in a static, relative, absolute, fixed position
Visibility sets whether the element is visible or invisible
Li {display: inline; visibility: hidden;} li {display: inline; visibility: visible;} these are all the contents of the article "how to classify Css". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!