Between the border-radius parameters in CSS3/

Source: Internet
Author: User

W3School learned this instance:

The border-radius attribute allows you to add rounded corners to an element.

 

As of noon today, my understanding of border-radius is as follows:

-webkit-border-radius:25px;
-moz-border-radius:25px;
border-radius:25px;

After trying to use it, the effect is correct. I think I have mastered border-radius... Obviously, I am wrong.

But in the course of learning, I made a big mistake: I don't know why.

 

In the afternoon, I saw an example using border-radius and explained how to use it.

Border-radius Syntax:

border-radius : none | <length>{1,4} [/ <length>{1,4} ]? 

That is to say, the rounded corner is not necessarily a positive circle, but an ellipse.

 

I tried this Code:

Untitled border-radius

The result is not an elliptical angle, but a 1/4 circle of 10px on the left and lower right, and a 1/4 circle of 5px on the right and bottom. Why? I set two parameters.

Look at the syntax, sweat... Misunderstanding !!!

<Length> {1, 4} [/<length> {1, 4}]? There is/Between Two Parameters/

Try again

Untitled border-radius

This results in.

 

I have an introduction to border-radius on the script home website, which is very detailed. Http://www.jb51.net/css/68792.html

 

 

 

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.