1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 strick//EN" "http://www.w3.org/TR/html4/loose.dtd"> < html >
< head >
< title > New Document </ title >
< meta name = "Generator" content = "EditPlus" >
< meta name = "Author" content = "" >
< meta name = "Keywords" content = "" >
< meta name = "Description" content = "" >
< style >
div {
height:1000px;
width:1000px;
background:gray;
}
#triangle {
width:0px;
height:0px;
border-top:200px solid transparent ;
border-right:200px solid transparent ;
border-bottom:200px solid pink;
border-left:200px solid transparent ;
}
</ style >
</ head >
< body >
< div >
< div id = "triangle" > </ div >
</ div >
</ body >
</ html >
|
边框颜色值 transparent 用来设置透明边框,使边框不可见!
本文转自kindIT 51CTO博客,原文链接:http://blog.51cto.com/kindit/1378408,如需转载请自行联系原作者