Pure css to make triangle icon

WBOY
Release: 2016-09-09 08:13:20
Original
1142 people have browsed it

I used to use pictures or css3 rotation to make triangle icons, but now I discovered that there is such a simple triangle

div {

border: 10px solid transparent;
border-bottom: 10px solid #000;
width: 0;

}

You can create a triangle with just three lines of css!

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