Initial solution of Css3.border-radius

Source: Internet
Author: User
1-4 Length| % 1-4 Length| %;
This is the complete syntax for Border-radius on W3school, but note that when we use it, we do not write '/' to the right, so the browser will be equal before and after, so we will make rounded borders

What if they are written out, but not equal?

Div
{
width:300px;
height:100px;
Background-color: #ff9900;
-moz-box-shadow:10px 10px 5px #888888; /* Old Firefox */
Border-radius:2em 1em 4em/0.5em 3em;
}

As you can see, we are making irregular fillets. where '/' before the horizontal radius, followed by the vertical radius.

In the code above, "Border-radius:2em 1em 4em/0.5em 3em;" is equivalent to

Border-top-left-radius:2em 0.5em;border-top-right-radius:1em 3em;border-bottom-right-radius:4em 0.5em; Border-bottom-left-radius:1em 3em;

Initial solution of Css3.border-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.