Border-radius knowledge point, borderradius
Border-radius: 50px; border radius CSS measurement values: em, px, percentage
If one value is set, this value is used for all four rounded corners. If two values are set, the first value is used in the upper left and lower right corner, and the second value is used in the upper right and lower left corner. If three values are set, the first value is used in the upper left corner, the second value is used in the upper right corner and the lower left corner, and the third value is used in the lower right corner. If four values are set, they correspond to the upper left corner, the upper right corner, the lower right corner, and the lower left corner (clockwise ).
Border-radius can also use a slash to set the second set of values. The first group indicates the horizontal radius, and the second group indicates the vertical radius. You can set 1 to 4 values for the second group. The application rules are the same as those for the first group.
Border-radius: 50px/25px;
Border-radius: 100px 25px 80px 5px/45px 25px 30px 15px;
In addition to setting four rounded corners, you can also set each corner separately. Corresponding to four corners, CSS3 provides four independent attributes: * border-top-left-radius * border-top-right-radius * border-bottom-left-radius can both be set to 1 to 2 values. If one value is set, the horizontal radius is equal to the vertical radius. If two values are set, the first value indicates the horizontal radius, and the second value indicates the vertical radius.
Border-top-left-radius: 50px;
Border-top-left-radius: 50px 100px; // the first value indicates the horizontal radius, and the second value indicates the vertical radius.