html:(必须有<!DOCTYPE html>声明!)
<!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:
$('.test').headBand({ 'background':'#008000',//设置背景色 'height':"3" //设置进度条高度 });