This post was updated 458 days ago and some of the ideas may be out of date.
先上代码
CSS
.mask {
background-color: #252525;
color: #252525;
transition: color 0.5s;
}
.mask:hover {
color: #ffffff;
}
HTML 例
<p>这是测试<span class="mask">并且被掩盖的</span>文字!</p>
例
这是测试并且被掩盖的文字!
参与讨论