Home > Web Front-end > CSS Tutorial > css drawing special graphics basics

css drawing special graphics basics

高洛峰
Release: 2016-10-14 14:43:46
Original
968 people have browsed it

1. Isosceles triangle

.isosceles{
    width: 0;
    height: 0;
    border:30px solid;
    border-left-color: transparent;
    border-right-color: transparent;
    border-top-color: transparent;
    border-bottom-color: red;
}
Copy after login

2. Right triangle

.right{
    width: 0;
    height: 0;
    border:30px solid;
    border-left: 0;
    border-right-color: transparent;
    border-top: 0;
    border-bottom-color: red;
}
Copy after login

3. Circle

.round{
    width: 100px;
    height: 100px;
    background-color: red;
    border-radius:50%;   
}
Copy after login

4. Ellipse

.ellipse{
    width: 100px;
    height: 80px;
    background-color: red;
    border-radius:50%;   
}
Copy after login


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