效果图
代码
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>鼠标悬停时的样式</title>
<style>
.box {
width: 100px;
height: 100px;
background-color: skyblue;
/* cursor 指定鼠标指针在元素上显示的样式
常见的 cursor 值包括:
default:默认的鼠标指针(通常是箭头)。
pointer:手形指针,通常用于表示链接或可点击元素。
crosshair:十字准线。
move:移动指针。
text:文本输入指针。
wait:等待指针(通常是沙漏或时钟)。 */
cursor: move;
}
</style>
</head>
<body>
<div class="box"></div>
</body>
</html>