我无法让 div 在点击时展开,我只能在使用悬停时让它工作。我尝试将 div 包装在一个但没有骰子中。有小费吗?
CSS
.membershipwrap {
overflow: hidden;
height: 50px;
background: #dadada;
width: 200px;
-webkit-transition: all .3s linear .3s;
-moz-transition: all .3s linear .3s;
-ms-transition: all .3s linear .3s;
-o-transition: all .3s linear .3s;
transition: all .3s linear .3s;
}
.membershipwrap:hover {
height: 150px;
}
HTML
<div class="membershipwrap">
<p>Lorem Ipsum Test</a></p>
<p>a;sdjf;jksdfkjas;dfj;safdj</p>
<p>;klasdjf;kajs;dflklsafdj;kasjdfk;asjf</p>
<p>;ksdjf;lkasdfjak;sdjfka;dfjs</p>
</div>