移入过渡:宽高,颜色,边距都可以 .box:hover{ transition: 要过渡的属性 花费时间 运动曲线 何时开始; } 通常写为: .box:hover{ transition: all 1s; }