Border-radius knowledge point-HappyForEverIsaDream

Source: Internet
Author: User
Border-radius knowledge point-HappyForEverIsaDream
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-right-radius

* Border-bottom-left-radius

You can set one or two values for these four attributes at the same time. 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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.