標籤:blog ar sp on div log bs ad ef
Triangle Up
| 1234567 |
#triangle-up { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-bottom: 100px solid red;} |
Triangle Down
| 1234567 |
#triangle-down { width: 0; height: 0; border-left: 50px solid transparent; border-right: 50px solid transparent; border-top: 100px solid red;} |
Triangle Left
| 1234567 |
#triangle-left { width: 0; height: 0; border-top: 50px solid transparent; border-right: 100px solid red; border-bottom: 50px solid transparent;} |
Triangle Right
| 1234567 |
#triangle-right { width: 0; height: 0; border-top: 50px solid transparent; border-left: 100px solid red; border-bottom: 50px solid transparent;} |
Triangle Top Left
| 123456 |
#triangle-topleft { width: 0; height: 0; border-top: 100px solid red; border-right: 100px solid transparent;} |
Triangle Top Right
| 1234567 |
#triangle-topright { width: 0; height: 0; border-top: 100px solid red; border-left: 100px solid transparent; } |
Triangle Bottom Left
| 123456 |
#triangle-bottomleft { width: 0; height: 0; border-bottom: 100px solid red; border-right: 100px solid transparent;} |
Triangle Bottom Right
| 123456 |
#triangle-bottomright { width: 0; height: 0; border-bottom: 100px solid red; border-left: 100px solid transparent;} |
CSS 魔法系列:純 CSS 繪製三角形(各種角度)