代码示例:(标识:css_pseudo-class_hover_tooltip)
<!DOCTYPE html>
<html>
<head>
<style>
p {
  display: none;
  background-color: yellow;
  padding: 20px;
}

div:hover p {
  display: block;
}
</style>
</head>
<body>

<div>鼠标移到我上面来显示 p 元素
  <p>哈哈!我在这里!</p>
</div>

</body>
</html>
运行结果: