CSS制作特殊边框
RESULT:
CODE:
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
3 <head runat="server">
4 <title></title>
5 <style type="text/css">
6 .triangle
7 {
8 border-color: transparent green transparent transparent;
9 border-style: solid;
10 border-width: 5px 4px 5px 0px;
11 height: 0px;
12 width: 0px;
13 float:left;
14 margin-top:30px;
15 }
16 </style>
17 </head>
18 <body>
19 <form id="form1" runat="server">
20 <div style="height:80px;">
21 <div class="triangle">
22 </div>
23 <div style="width:60px; height:73px; float:left;border:solid 1px green; "></div>
24 </div>
25 </form>
26 </body>
27 </html>
posted on 2012-02-09 11:26 jenney.qiu 阅读(471) 评论(0) 编辑 收藏 举报