Home >Web Front-end >CSS Tutorial >Pure CSS to change the text content by placing the mouse on it_CSS/HTML

Pure CSS to change the text content by placing the mouse on it_CSS/HTML

WBOY
WBOYOriginal
2016-05-16 12:03:363545browse

css style

Copy code The code is as follows:

.remind span {display:block;margin-top :-22px;}
.remind a:hover {padding-top:22px;}
.remind a {float:left;overflow:hidden;}
.remind{height:22px;line-height :22px;overflow:hidden;padding-left:10px;}

html code

Copy code The code is as follows:

Specific examples


[Ctrl A Select all Note:If you need to introduce external Js, you need to refresh 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