1,功能:设置鼠标光标的样式
2,属性值:
(1)pointer(小手)
(2)move(移动图标)
(3)text(文字选择器)
(4)crosshair(十字架)
(5)wait(等待)
(6)help(帮助)
3,代码演示
<style>
div{
width: 600px;
height: 300px;
background-color: skyblue;
cursor: pointer;
/* 自定义鼠标光标 注意后面的pointer不要忘记 */
cursor: url('./arrow.png'),pointer;
}
</style>
</head>
<body>
<div>
把鼠标放进来看一看
<input type="text">
<a href="#">百度</a>
</div>
</body>