cursor:url()不起作用的原因

1,229 阅读1分钟

注意点

1.cursor: url后要加上auto

2.图片应为是32*32的ico格式

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Document</title>
	<style type="text/css">
		body{
			cursor: url(bitbug_favicon.ico), auto;
		}
	</style>
</head>
<body>
	<h1>大家好,今天给大家演示一下,改变鼠标光标图案</h1>
</body>
</html>