This time to bring you a single, check-style beautification of the text and detail, a single selection, check the style of attention to beautify the matter of what, the following is the actual case, together to see.
Objective
I'm sure you all know. In form elements, radio buttons and check buttons have both checked and unchecked states. It is difficult to override the default styles for these two buttons. In CSS3, we can implement custom styles with other tags through the status selector ": Checked". With CSS3 we can create very personalized user forms, the results achieved in this article is very good, interested in the following friends to learn together.
As follows
Instance Code
<! DOCTYPE html>
Attention:
+ is the adjacent selector for the CSS.
There are only four relationship selectors, spaces > + ~ (contains selectors, sub-selectors, adjacent selectors, sibling selectors)
Believe that you have read the case of this article you have mastered the method, more exciting please pay attention to the PHP Chinese network other related articles!
Recommended reading:
CSS implements the first level navigation bar
Linear-gradient the use of a detailed
Common use of CSS and HTML errors