1 <!doctype html> 2 <html lang="en"> 3 <head> 4 <meta charset="UTF-8"> 5 <title>css3旋转小三角</title> 6 <style> 7 div{ 8 width: 0; 9 height: 0; 10 border-style: solid dashed dashed dashed;/*这样写是兼容IE6写法*/ 11 border-width: 10px; 12 border-color: red transparent transparent transparent; 13 } 14 </style> 15 </head> 16 17 <body> 18 <div></div> 19 </body> 20 </html>