Topic Reviews
This problem seems very simple, but if not before pondering this problem, give a person feel is also the head of the door, hear this topic is crazy, because the original never notice this problem, even if there is attention to this problem can not be very good answer clear. The technique of answering is to answer from the same points and different points, their roles, and cautions. 650) this.width=650; "alt=" Struggle "src=" http://static.blog.csdn.net/xheditor/xheditor_emot/default/struggle.gif "style = "Border:none;"/>
Answer points
Can be used to represent pseudo-class objects, which are used to set the content before the object
: befor and:: Before notation is equivalent
: Befor is the CSS2,:: Before is the Css3 of the wording
: Before compatibility is better than:: Before good, but recommended in H5 development:: Before better
Add sub-item
Pseudo-class objects are used in conjunction with the Content property
Pseudo-class objects do not appear in the DOM, so they cannot be manipulated by JS, simply by adding the CSS render layer
The effects of pseudo-class objects are typically used: hover pseudo-class styles to activate
[CSS] view plain copy 650) this.width=650; "Src=" https://code.csdn.net/assets/CODE_ Ico.png "width=" "height=" "alt=" on code to view the chip "style=" Border:none; "/>650" this.width=650; "src=" https ://code.csdn.net/assets/ico_fork.svg "width=" "height=" "alt=" derived from My Code slice "style=" border:none; "/>
. test:hover::before { /* At this time animation and transition only take effect */ }
--------------------------------------------------------------------------------------------------------------- -----
This article from "Wisdom 1" blog, reproduced please contact the author!
Web Front End Interview Guide (12)::: Before and: What is the difference between before?