if (isset($_POST['agree'])) { // 判断 POST 请求中的 cid 是否是本篇文章的 cid if ($_POST['agree'] == $this->cid) { // 调用点赞函数,传入文章的 cid,然后通过 exit 输出点赞数量 exit(agree($this->cid)); } // 如果点赞的文章 cid 不是本篇文章的 cid 就输出 error 不再往下执行 exit('error'); }

css鼠标样式大全

cursor 鼠标指针

css鼠标样式大全

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .flex-box{display: flex;align-items: center;flex-wrap: wrap;justify-content: flex-start;justify-items: center; }
      .box {padding:20px;flex-grow: 1;  background: #2b2b2b; color: #fff; text-align: center; vertical-align: middle; margin:10px }
      .box:hover{opacity: 0.8;}
.default{cursor: default;}
.n-resize { cursor: n-resize; }
.e-resize { cursor: e-resize; }
.w-resize { cursor: w-resize; }
.ew-resize{cursor: ew-resize;}
.s-resize { cursor: s-resize; }
.ne-resize { cursor: ne-resize; }
.nw-resize { cursor: nw-resize; }
.sw-resize { cursor: sw-resize; }
.se-resize { cursor: se-resize; }
.nesw-resize { cursor: nesw-resize; }
.not-allowed { cursor: not-allowed; }
.move { cursor: move; }
.crosshair { cursor: crosshair; }
.zoom-in { cursor: zoom-in; }
.zoom-out { cursor: zoom-out; }
.progress { cursor: progress; }
.pointer { cursor: pointer; }
.progress {cursor: progress; }
.wait{cursor:wait;}
.text{cursor: text;}
.vertical-text{cursor: vertical-text;}
.initial{cursor: initial;}
.grab{cursor: grab;}
.grabing{cursor: grabbing;}
.help{cursor: help;}
    </style>
</head>

<body>
    <div class="flex-box">
        <div class="box default">default</div>
        <div class="box n-resize">n-resize</div>
        <div class="box e-resize">e-resize</div>
        <div class="box w-resize">w-resize</div>
        <div class="box ew-resize">ew-resize</div>
        <div class="box s-resize">s-resize</div>
        <div class="box ne-resize">ne-resize</div>
        <div class="box nw-resize">nw-resize</div>
        <div class="box nesw-resize">nesw-resize</div>
        <div class="box sw-resize">sw-resize</div>
        <div class="box se-resize">se-resize</div>
        <div class="box not-allowed">not-allowed</div>
        <div class="box crosshair">crosshair</div>
        <div class="box zoom-in">zoom-in</div>
        <div class="box zoom-out">zoom-out</div>
        <div class="box pointer">pointer</div>
        <div class="box move">move</div>
        <div class="box progress">progress</div>
        <div class="box wait">wait</div>
        <div class="box text">text</div>
        <div class="box vertical-text">vertical-text</div>
        <div class="box initial">initial</div>
        <div class="box grab">grab</div>
        <div class="box grabing">grabing</div>
        <div class="box help">help</div>
    </div>
</body>

</html>
来都来了,留个言吧🙂