Home > Web Front-end > HTML Tutorial > About the implementation of CSS3 triangle_html/css_WEB-ITnose

About the implementation of CSS3 triangle_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 11:44:18
Original
997 people have browsed it

1,向上的三角

 1 
 2  < html >
 3  < head >
 4  < meta  charset ="utf-8" >
 5  < title >border-radius
 6  < style >
 7  div{  
 8      width: 0;
 9      height: 0;
10      border-left: 20px solid transparent;
11      border-right: 20px solid transparent;
12      border-bottom: 20px solid #ccc;
13      }
14 
15 
16  < body >
17  < div >
18 
19 
20 

2,向下的三角

 1 
 2  < html >
 3  < head >
 4  < meta  charset ="utf-8" >
 5  < title >border-radius
 6  < style >
 7  div{  
 8      width: 0;
 9      height: 0;
10      border-left: 20px solid transparent;
11      border-right: 20px solid transparent;
12      border-top: 20px solid #ccc;
13      }
14 
15 
16  < body >
17  < div >
18 
19 

20  

3,向左的三角

 1 
 2  < html >
 3  < head >
 4  < meta  charset ="utf-8" >
 5  < title >border-radius
 6  < style >
 7  div{  
 8      width: 0;
 9      height: 0;
10      border-top: 20px solid transparent;
11      border-bottom: 20px solid transparent;
12      border-right: 20px solid #ccc;
13      }
14 
15 
16  < body >
17  < div >
18 
19 

20  

4,向右的三角

 1 
 2  < html >
 3  < head >
 4  < meta  charset ="utf-8" >
 5  < title >border-radius
 6  < style >
 7  div{  
 8      width: 0;
 9      height: 0;
10      border-top: 20px solid transparent;
11      border-bottom: 20px solid transparent;
12      border-left: 20px solid #ccc;
13      }
14 
15 
16  < body >
17  < div >
18 
19 

20  

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