CSS3 rounded corner (border-radius)

Source: Internet
Author: User

Border-radius in CSS3 supports IE9 +, chrome, firefox 2, 3 +, and safari3.2 + browsers.

Border-radius can be used directly without a prefix (Note: firefox13 removes the-moz prefix, that is, the original-moz-border-radius is changed to border-radius, adding a prefix will make it impossible to display the rounded corner. chrome can add a prefix or a prefix without a prefix) directly add a value after border-radius to determine the rounded corner size, for example, border-radius: 5px;

1. Border:

                    

Effect:

 

2. No border

Add the color code to css.

background: #cc0000;

Effect

 

Complete code without Borders:

                    

3. Four Corners of different sizes

Four Corners of different sizes is particularly simple, use border-radius: 5px 10px 15px 20px; integration is enough.

The following results:

 

The complete code is:

                    

 

Related Article

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.