1、
div:hover{
margin: 10px
}
2、
div{
width: 300px;
height: 600px;
background-color: #f00;
transition: all 1s linear 0s;
}
div:hover{
width: 200px
height: 500px
}
hover从这里就可以看出来是非常重要的,用法非常多。谨记!
1、
div:hover{
margin: 10px
}
2、
div{
width: 300px;
height: 600px;
background-color: #f00;
transition: all 1s linear 0s;
}
div:hover{
width: 200px
height: 500px
}
hover从这里就可以看出来是非常重要的,用法非常多。谨记!