當元素 width: 0; height: 0; 時,四條邊框交汇形成四個三角形,顏色由各邊框色決定。
.square {
width: 0; height: 0;
border-top: 50px solid red;
border-bottom: 50px solid green;
border-left: 50px solid yellow;
border-right: 50px solid blue;
}

.arrow-up {
width: 0; height: 0;
border-top: 50px solid #000; /* 顯示 */
border-bottom: none; /* 隱藏 */
border-left: 50px solid transparent; /* 透明佔位 */
border-right: 50px solid transparent;
}

.arrow-up:hover {
border-top: none;
border-bottom: 50px solid #000;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
}
.btn {
width: 100px; height: 100px;
background: #ccc;
border-radius: 50%;
box-shadow: 5px 5px 10px #000; /* 外陰影 → 凸起感 */
}
.btn:active {
background: #bbb;
box-shadow: 5px 5px 10px #000 inset; /* 內陰影 → 按下感 */
}

width/height=0 + 等寬邊框 + 透明色控制可見面transparent 或 nonebox-shadow 外陰影/內陰影切換 + :active 偽類