jQuery阅读进度条

插件特效
2026-07-26 00:39 2 次浏览 • 0 次下载 0.9KB
jQuery阅读进度条

使用方法

html:(必须有<!DOCTYPE html>声明!)

1
2
3
4
5
6
7
8
9
10
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Demo</title>
</head>
<body>
<div class="test" ></div>
<div class="content" style="height: 5000px;"></div>
</body>

js:

1
2
3
4
$('.test').headBand({
'background':'#008000',//设置背景色
'height':"3" //设置进度条高度
});