<a href="#">hover <div class="div2"> <p>qwerqwerqwer</p> </div> </a>
a:hover .div2{ animation: 0.5s div2 ease-in forwards; } a:hover p{ display: block; } @keyframes div2{ 0%{height: 0; } 100%{height: 200px; } } .div2{ width: 200px; background-color: red; } p{ display: none; }
There is a p tag in a div. When I want to do a:hover, what can I do if the div is expanded first and then the p tag is displayed? -PHP Chinese website Q&A-There is a p tag in a div. When I want to do a:hover, what can I do if the div is expanded first and then the p is displayed? -PHP Chinese website Q&A
Let’s take a look and learn.