know. the Content property of the CSS is specifically applied to the before/after pseudo-element, which is used to insert the generated content. The most common application is to use pseudo-classes to clear floats.
. clearfix:after { content: ".";//the content attribute Display:block is used here ; height:0; Visibility:hidden; Clear:both; }.clearfix { *zoom:1;}
After pseudo-elements generate block-level elements of a point after the element through the content, and then use Clear:both to clear the float.
So the question continues, Do you know the CSS counter (sequential numeric characters are automatically incremented)? How do I implement CSS counters with CSS content properties?
Answer:The CSS counter is implemented by setting Counter-reset, counter-increment two properties, and counter ()/counters () a method with the After/before pseudo-class.
Do you know that CSS has a content property? What's the effect? What is the application? Can pseudo-class clear floating