欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

学习笔记19:CSS光标改变(cursor)

程序员文章站 2024-02-12 17:23:40
...
<!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>
        div {
            height: 100px;
            width: 100px;
            background-color: skyblue;
            margin: 10px;
        }
    </style>
</head>

<body>
    <div style="cursor: default;">AAAAA</div>
    <div style="cursor: pointer;">AAAAA</div>
    <div style="cursor: move;">AAAAA</div>
    <div style="cursor: text;">AAAAA</div>
    <div style="cursor: not-allowed;">AAAAA</div>
</body>

</html>