When css code:
li:hover p{display:block; }
p must be a child element of li. If it is a sibling element, you can use
li:hover+p{display:block; }
p. When placing it in other positions, I don’t know how to use css to set the floating pop-up display function. You can use js to set it
The above is the detailed content of Detailed introduction about hover div. For more information, please follow other related articles on the PHP Chinese website!