css如何实现鼠标悬停的提示效果。

求一个demo,效果如下图。鼠标悬停时出现提示“任务中心”。不要只给一个思路,要具体代码,谢谢。
同一问题悬赏共150财富,原问题地址:
https://zhidao.baidu.com/question/1992882363062673907.html

下面的代码就是css实现的鼠标悬停,你看下是不是你要的。不行就追问我。可能样式不是你想要的,你可以自行修改一下样式。

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
*{margin:0;padding:0;}
ul{list-style-type: none;}
ul>li{float:left;margin-right: 10px;position: relative;width:100px;}
li>span{display: none;position: absolute;top: 20px;background: #ccc;}
li:hover >span{display: block;}
</style>
</head>
<body>
<ul>
<li>提示<span>任务中心</span></li>
<li>提示<span>通知</span></li>
<li>提示<span>装扮</span></li>
</ul>
</body>
</html>

温馨提示:答案为网友推荐,仅供参考
相似回答