演示代码:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style type="text/css">
div{
width: 100px;height: 30px;line-height: 30px;
text-align: center;background-color: #ccc;
}
div:hover{
cursor: pointer;
}
</style>
</head>
<body>
<!--
鼠标样式设置:
cursor: 样式;
-->
<!-- (span{我要自学$}+br)*4 -->
<span style="cursor: pointer;">我要自学1</span>
<br>
<span style="cursor: wait;">我要自学2</span>
<br>
<span style="cursor: help;">我要自学3</span>
<br>
<span style="cursor: auto;">我要自学4</span>
<br>
<!-- div#page{点击跳转} -->
<div id="page">点击跳转</div>
<script type="text/javascript">
document.getElementById("page").onclick=function(){
window.location="https://www.baidu.com";
}
</script>
</body>
</html>