As we all know, the form of a write element native style is not very good-looking, the project needs to be optimized, the following article mainly describes how to use CSS3 beautify the radio, check the display style of the button, the need for friends can refer to, let's see together.
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)