OpenList美化教程

官网:https://doc.oplist.org/

20260307141857250-2813

教程

隐藏底部版权信息:去掉页面底部的“由 AList 驱动和管理”字样 。

  <style>.footer { display: none !important; }</style>

· 自定义全局字体:引入并设置一个优雅的字体,例如“霞鹜文楷” 。

  <!– 在自定义头部引入字体库 –>

  <link rel=”stylesheet” href=”https://cdn.staticfile.net/lxgw-wenkai-screen-webfont/1.7.0/lxgwwenkaigbscreen.min.css”>

  <style>

  * { font-family: ‘LXGW WenKai Screen’, sans-serif; } /* 应用字体 */

  </style>

点击特效

<script>
(function() {
    var a_idx = 0;
    window.onclick = function(event) {
        var a = new Array("❤富强❤", "❤民主❤", "❤文明❤", "❤和谐❤"); // 在这里修改点击出现的文字
        var heart = document.createElement("b");
        heart.onselectstart = new Function('event.returnValue=false');
        document.body.appendChild(heart).innerHTML = a[a_idx];
        a_idx = (a_idx + 1) % a.length;
        heart.style.cssText = "position: fixed;left:-100%;";
        var f = 13, x = event.clientX - f / 2 - 30, y = event.clientY - f, c = "rgb(" + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + "," + (~~(Math.random() * 255)) + ")", a = 1, s = 0.8;
        var timer = setInterval(function() {
            if (a <= 0) { document.body.removeChild(heart); clearInterval(timer); }
            else {
                heart.style.cssText = "font-size:16px;cursor: default;position: fixed;color:" + c + ";left:" + x + "px;top:" + y + "px;opacity:" + a + ";transform:scale(" + s + ");";
                y--; a -= 0.016; s += 0.002;
            }
        }, 15)
    };
}());
</script>

 

© 版权声明
THE END
喜欢就支持一下吧
点赞5 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容