惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

大猫的无限游戏
大猫的无限游戏
Webroot Blog
Webroot Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Threat Research - Cisco Blogs
V2EX - 技术
V2EX - 技术
L
LINUX DO - 热门话题
Google DeepMind News
Google DeepMind News
Recorded Future
Recorded Future
S
Schneier on Security
I
InfoQ
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The GitHub Blog
The GitHub Blog
S
Security @ Cisco Blogs
O
OpenAI News
W
WeLiveSecurity
Vercel News
Vercel News
阮一峰的网络日志
阮一峰的网络日志
Simon Willison's Weblog
Simon Willison's Weblog
人人都是产品经理
人人都是产品经理
Cloudbric
Cloudbric
The Last Watchdog
The Last Watchdog
The Hacker News
The Hacker News
Google Online Security Blog
Google Online Security Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
GbyAI
GbyAI
NISL@THU
NISL@THU
T
Tailwind CSS Blog
V
Visual Studio Blog
PCI Perspectives
PCI Perspectives
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
D
DataBreaches.Net
B
Blog RSS Feed
N
News and Events Feed by Topic
N
News and Events Feed by Topic
H
Heimdal Security Blog
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
腾讯CDC
Latest news
Latest news
V
Vulnerabilities – Threatpost
Hacker News: Ask HN
Hacker News: Ask HN
WordPress大学
WordPress大学
V
V2EX
aimingoo的专栏
aimingoo的专栏
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
D
Darknet – Hacking Tools, Hacker News & Cyber Security
The Register - Security
The Register - Security
Help Net Security
Help Net Security

gorpeln的个人博客 - gorpeln

免费领取Synology C2的30G对象存储空间 | gorpeln 用HuggingFace搭建100G超大图床 | gorpeln 毫无破绽的自我批评 | gorpeln's Blog 时光本的故事 - 始于热爱,归于珍藏 | gorpeln's Blog 给博客图片添加水印 | gorpeln's Blog 博客CDN流量异常 | gorpeln's Blog 一路生花 | gorpeln's Blog 10 周年:时光为证,与你共赴新程 | gorpeln's Blog 时光本 - 数据导出 | gorpeln's Blog 时光本 - 下线公告 | gorpeln's Blog 整蛊代码:你屏幕上有根毛 | gorpeln's Blog 手机真的在监听你的谈话? | gorpeln's Blog 使用Serv00部署在线工具箱 | gorpeln's Blog 自定义博客文章卡片 | gorpeln's Blog 个人博客可以尝试的 100 件事 | gorpeln's Blog MathJax的基本使用 | gorpeln's Blog Mac应用发布错误:ITMS-91109 | gorpeln's Blog 春节灯笼 | gorpeln's Blog 彩带、樱花背景 | gorpeln's Blog 节日倒计时与时间进度条 | gorpeln's Blog
博客阅读进度条 | gorpeln's Blog
gorpeln · 2025-06-06 · via gorpeln的个人博客 - gorpeln

将下方代码放到头部HTML代码内

<div id="percentageCounter"></div>

css代码:

<!-- 阅读进度条开始 -->
<style type="text/css">
    #percentageCounter{
        position:fixed; 
        left:0; top:0; 
        height:3px; 
        z-index:99999; 
        /*绿红色*/
        /*background-image: linear-gradient(to right, #339933,#FF6666);*/
        /*白蓝色*/
        background-image: linear-gradient(to right, #E8EAF6,#C5CAE9,#9FA8DA,#7986CB,#5C6BC0,#3F51B5,#3949AB,#303F9F,#283593,#1A237E);
        border-radius:5px;
    }
</style>

js代码:

<script type="text/javascript">    
    $(window).scroll(function() {
        var a = $(window).scrollTop(),
        c = $(document).height(),
        b = $(window).height();
        scrollPercent = a / (c - b) * 100;
        scrollPercent = scrollPercent.toFixed(1);
        $("#percentageCounter").css({
            width: scrollPercent + "%"
        });
    }).trigger("scroll");
</script>
<!-- 阅读进度条结束 -->

最后编辑于:2025-09-10

如有任何知识产权、版权问题或理论错误,还请指正。转载请附上原文出处链接。