Home  >  Article  >  Web Front-end  >  Detailed explanation of border-radius in css style

Detailed explanation of border-radius in css style

迷茫
迷茫Original
2017-03-25 11:52:411442browse

border-radius property sets the corner of the border

Possible values: pixels, percentage

Extended extension

html code

<p></p>

css code

 p {
    height: 200px;
    width: 200px;
    border: 2px solid #a72525;
    border-radius: 10px;
}

Result

css code

 p {
    height: 200px;
    width: 200px;
    background: #a72525;
    border-radius: 50%;
}

Result

css code

 p {
    height: 200px;
    width: 100px;
    border: 2px dashed #a72525;
    border-radius: 100px 0 0 100px;
}

Result

css code

 p {
    height: 200px;
    width: 200px;
    border: 2px dotted #a72525;
    border-radius: 100% 0 0;
}

Result

css code

 p {
    height: 200px;
    width: 100px;
    background: #f09;
    border-radius: 50%;
}

Result

css code

 p {
    height: 200px;
    width: 200px;
    background: #f90;
    border-radius: 100% 0;
}

result

css code

 p {
    width: 0;
    height: 0;
    border: 100px solid gray;
    border-radius: 100px;
    border-right-color: transparent;
}

result

The above is the detailed content of Detailed explanation of border-radius in css style. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn