我想把高度的增长路径从自上而下变为自下而上,这在CSS中可能吗?
.button {
margin-top:200px;
margin-right:34px;
width:150px;
height:45px;
background:black;
float:right;
transition-duration:2s;
}
.buttom:hover{
height:180px;
transition-duration:2s;
}
<div class='button'> </div>
bottom
而不是top
。使用浮动的相对定位,就像你所做的那样...我觉得行不通。 - PlantTheIdea