DIV+CSS 网页TIP的简单作法_CSS/HTML

WBOY
Release: 2016-05-16 12:10:47
Original
1622 people have browsed it

基本的原理就是用display;当display: block;就显示;当display:none;时就不显示;
例如:

复制代码代码如下:

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


[Ctrl+A 全选 注: 如需引入外部Js需刷新才能执行]
Related labels:
source:php.cn
Statement of this Website
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