css - 绘制三角形
2017-04-23 08:47
375 查看
http://runjs.cn/
/*向上*/ #triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red; } /*向下*/ #triangle-down { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid red; } /*向左*/ #triangle-left { width: 0; height: 0; border-top: 50px solid transparent; border-right: 100px solid red; border-bottom: 50px solid transparent; } /*向右*/ #triangle-right { width: 0; height: 0; border-top: 50px solid transparent; border-left: 100px solid red; border-bottom: 50px solid transparent; } /*左上*/ #triangle-topleft { width: 0; height: 0; border-top: 100px solid red; border-right: 100px solid transparent; } /*右上*/ #triangle-topright { width: 0; height: 0; border-top: 100px solid red; border-left: 100px solid transparent; } /*左下*/ #triangle-bottomleft { width: 0; height: 0; border-bottom: 100px solid red; border-right: 100px solid transparent; } /*右上*/ #triangle-bottomright { width: 0; height: 0; border-bottom: 100px solid red; border-left: 100px solid transparent; }
相关文章推荐
- 纯CSS绘制三角形(各种角度)
- CSS学习笔记:利用border绘制三角形
- 纯CSS绘制三角形(各种角度)
- 使用CSS绘制三角形
- 使用CSS绘制三角形
- html中css使用div绘制三角形
- CSS绘制三角形的原理剖析
- 纯CSS绘制三角形的代码
- 纯CSS绘制的三角形箭头图案【原创】
- CSS绘制三角形(含代码)
- 纯CSS绘制三角形(各种角度)
- css绘制三角形图标
- 纯CSS绘制三角形(各种角度)
- 纯CSS绘制三角形(多个角度)
- css绘制三角形
- 纯CSS绘制三角形箭头效果
- 浅谈纯CSS绘制圆形、椭圆形、菱形、三角形
- CSS 魔法系列:纯 CSS 绘制三角形(各种角度)
- 使用CSS绘制三角形
- 纯css绘制 三角形 ,箭头