一、cursor的解释与属性值
curosr的中文翻译为光标,其为CSS中的一个属性,其属性值有:1.defult(小白) 2.point(小手) 3.move(移动) 4.text(文本) 5.not-alowed(禁止)
二、cursor的用法
案例:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
.defult{
cursor: default;
}
.pointer{
cursor: pointer;
}
.move{
cursor: move;
}
.text{
cursor: text;
}
.not{
cursor: not-allowed;
}
</style>
</head>
<body>
<ul>
<li class="defult">天青色等烟雨 而我在等你</li>
<li class="pointer">天青色等烟雨 而我在等你</li>
<li class="move">天青色等烟雨 而我在等你</li>
<li class="text">天青色等烟雨 而我在等你</li>
<li class="not">天青色等烟雨 而我在等你</li>
</ul>
</body>
</html>
大家可以复制代码,自行体会。