Home >Web Front-end >CSS Tutorial >Simple method of DIV+CSS webpage TIP_CSS/HTML

Simple method of DIV+CSS webpage TIP_CSS/HTML

WBOY
WBOYOriginal
2016-05-16 12:10:471709browse

The basic principle is to use display; when display: block; it is displayed; when display: none; it is not displayed;
For example:

Copy code The code is as follows:

#infobox span{ display: none; }
#infobox a:hover span{display: block;position:absolute;}


[Ctrl+A to select all Note: If you need to introduce external Js, you need to refresh it to execute ]
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