Home > Web Front-end > CSS Tutorial > Detailed explanation of the border-radius attribute of CSS style

Detailed explanation of the border-radius attribute of CSS style

高洛峰
Release: 2017-03-15 10:39:07
Original
1538 people have browsed it

This article explains in detail the css style border-radius attribute

border-radius attribute sets the corner of the border

Possible Values: pixels, percentage

Extension extension

html code

<p></p>
Copy after login
<p></p>

css code

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

result

css code

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

Result

css code

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

Result

css code

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

result

css code

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

result

css code

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

result

css code

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

result

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template