<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.box {
width: 200px;
height: 400px;
background-color: red;
transition: width 1s linear,
height 1s linear 1s,
background-color 1s linear 2s;
}
.box:hover {
width: 600px;
height: 800px;
background-color: green;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>
转载于:https://www.cnblogs.com/divtab/p/11588656.html