p { margin:100px; height:200px; width:200px; } img { width:100%; transition:all 0.5s; cursor:pointer; } img:hover { transform:scale(1.5); /* 放大1.5倍 */ }
更新时间:2020-06-05 09:55:41