Home  >  Article  >  Web Front-end  >  Detailed introduction about hover div

Detailed introduction about hover div

高洛峰
高洛峰Original
2017-03-17 10:19:451975browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn