diff --git a/.local/static/2019/10/2/1574738229230.1574738229286.png b/.local/static/2019/10/2/1574738229230.1574738229286.png new file mode 100644 index 0000000..56db2aa Binary files /dev/null and b/.local/static/2019/10/2/1574738229230.1574738229286.png differ diff --git a/css绘制三角形.md b/css绘制三角形.md index a855e48..00ab10e 100644 --- a/css绘制三角形.md +++ b/css绘制三角形.md @@ -3,3 +3,20 @@ ## 实现原理 ## 确定底部将其他边框设置为透明 最后一个确定颜色 ## 实现过程 ## +![title](.local/static/2019/10/2/1574738229230.1574738229286.png) +css代码 +``` + .box{ + width: 10px; + height: 10px; + border-top: red solid 10px; + border-bottom: blue solid 10px; + border-left: yellow solid 10px; + border-right: green solid 10px; + } +``` +html +``` +
+``` +这样就