使用CSS:hover选择器可在鼠标悬停时使用CSS设置样式。您可以尝试运行以下代码来实现:hover选择器-
<!DOCTYPE html>
<html>
<head>
<style>
a:hover {
background-color: orange;
}
</style>
</head>
<body>
<a href = "https://www.qries.com">Qries</a>
<p>Keep the mouse cursor on the above link and see the effect.</p>
</body>
</html>