温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

使用CSS怎么实现埋点统计

发布时间:2021-04-09 16:42:20 来源:亿速云 阅读:161 作者:Leah 栏目:web开发

这篇文章给大家介绍使用CSS怎么实现埋点统计,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。

//index.html

<!DOCTYPE html>
<html>

    <head lang="en">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
        <title>CSS埋点</title>
        <style>
            .background {
                background-size: 100% 100%;
                width: 100%;
                height: 100%;
                position: fixed;
                z-index: -100;
            }

            html {
                background-color: #fff;
            }

            .notice-content {
                border: 1px #ccc solid;
                padding: 19px;
                border-radius: 10px;
                width: 80%;
                margin-left: 10%;
                margin-top: 10%;
            }

            .check-content {
                padding: 0!important;
                width: 80%!important;
                margin-left: 25px;
                margin-top: 10px;
            }

            .confirm {
                float: left;
                position: relative!important;
                left: 6%;
                height: 32px!important;
                line-height: 32px!important;
            }

            .btn {
                border: 1px solid #ff6689;
                background-color: #ff6689;
                width: 60%;
                margin-left: 20%;
                margin-top: 36px;
                font-size: 16px;
                font-weight: bold;
                color: #FFFFFF;
            }

            .title {
                display: block;
                text-align: center;
                font-size: 20px;
                margin-bottom: 19px;
            }

            span {
                display: block;
                margin-bottom: 7px;
            }

            .mui-checkbox input[type=checkbox]:checked:before,
            .mui-radio input[type=radio]:checked:before {
                color: #ff6689;
            }

            .body-content {
                width: 100%;
                height: 100%;
            }

            body {
                background-color: rgba(239, 239, 244, 0)!important;
            }

            .link:active::after{
                margin: 100px 100px;
                color: red;
                content: url("http://192.168.1.100:8888/Hotels_Server/view/count.php?action=visit");
            }
        </style>
    </head>

    <body>
        <div class="loading">
            </div>
        <div style="" class="body-content">
            <div class="background">
                <!-- <img id="background" src="img/background.png"> -->
            </div>

            <div class="notice-content">
                <label class="title">登记须知</label>
                <span>1.本次登记仅限于中国地区。</span>
                <span>2.完成登记审核通过后,生育登记服务卡可到乡(镇、街道)直接领取,也可选择邮寄到付快递给申请人。</span>
                <span>3.申请登记信息需真实完整,如有虚假,申请人将承担相应的法律责任。</span>
            </div>
            <a class="link title">访问</a>
        </div>
    </body>
</html>
//count.php
<?php
/**
 * Created by PhpStorm.
 * User: geek
 * Date: 2018/1/18
 * Time: 上午9:56
 */
    $actionName =  $_REQUEST["action"];
    //时间格式化
    $time = time();
    $time = Date("Y-m-d",$time);
    echo "访问动作->" .$actionName. " 访问时间->" . $time;
?>

使用CSS怎么实现埋点统计

css点击统计

使用CSS怎么实现埋点统计

关于使用CSS怎么实现埋点统计就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

css
AI