Home  >  Article  >  Web Front-end  >  Pure css to make triangle icon

Pure css to make triangle icon

WBOY
WBOYOriginal
2016-09-09 08:13:201098browse

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!

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