[Web前端]CSS高阶提问...

不好意思,css打错了,确实是 transition。

使用transition 无需知道 width 值呀?直接 width -> 0 就出现动画了。