button:hover { box-shadow: 2px 2px 5px #888; }
一. button:hover指的是當滑鼠移到按鈕上方時給予按鈕效果。
二. 應用案例
1. 按鈕增加影子
2. 按鈕改變顏色
3. 按鈕改變大小