Article Introduction: CSS3 Instance Tutorial: Hover, Active, and: Focus pseudo selector. |
CSS3 the Pseudo class selector is more, today we will learn the new pseudo class selector--ul state pseudo class selector. These selectors all have a common feature name that is the defined style only works when the element is in a certain state and is not valid by default.
Today we come to contact: hover, active and: Focus these three kinds of state pseudo class selector.
: hover selector,: Active selector and: Focus Selector
: Hover selector: The style used when the mouse hovers over the specified element;
: Active selector: the style to use when the specified element is active (the mouse is pressed on the element and not released);
: Focus Selector: The style used when the element obtains the cursor focal point, used mainly in text boxes when entering text;
"Note" the case run effect, the reason why immediately after the click to Green because of the active trigger while the focus also triggered, so the active definition of the style appears invalid, you can first focus on the definition of the style annotation off the run;
<TITLE>CSS3 Instance Tutorials: hover, active, and: Focus pseudo-selector-web teaching network webjx.com