css 画三角形
<html> <head> <title></title> <style type="text/css"> .tran { width:0; height:0; border-width:35px 20px 0; border-style:solid dashed dashed dashed; border-color:#e66161 transparent transparent transparent; } </style> </head> <body style="background-color: green;"> <div class="tran"></div> </body> </html>
上面是ie版的, 当然其他浏览器肯定会支持的.