jquery实现的文章阅读滚动进度条导航效果代码
代码语言:html
所属分类:菜单导航
代码描述:jquery实现的文章阅读滚动进度条导航效果代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/reset.min.css"> <link rel='stylesheet prefetch' href='https://fonts.googleapis.com/css?family=Open+Sans:300,400|Merriweather:300'> <style> *, *:before, *:after { box-sizing: border-box; } .clearfix:before, .clearfix:after { content: " "; display: table; } .clearfix:after { clear: both; } .clearfix { *zoom: 1; } body { background-color: #D6E1E5; color: #6B7072; font-size: 100%; margin-bottom: 10em; } @media only screen and (min-width: 700px) { body { font-size: 110%; } } @media only screen and (min-width: 800px) { body { font-size: 120%; } } h1, h2, p { padding: 0 50px; line-height: 1.75; margin: 0 auto; max-width: 1100px; } @media only screen and (min-width: 800px) { h1, h2, p { padding: 0 100px; } } h1, h2 { font-family: 'Open Sans'; font-weight: 300; font-size: 250%; line-height: 1.5; } h1 { margin-top: 1.5em; margin-bottom: 1.5em; color: #DB5B33; } h2 { margin-top: 2em; margin-botttom: 1em; color: #4598B5; } p { font-family: 'Merriweather'; font-weight: 300; font-size: 100%; margin-top: 2em; margin-bottom: 2em; } a { color: #2d2f30; text-decoration: underline; transition: color 100ms ease-in; } a:hover, a:focus { color: #DB5B33; } .progressbar { display: none; margin: 4em 0; } @media only screen and (min-width: 650px) { .progressbar { display: block; } } .progressbar .shim { display: none; width: 100%; } .progressbar .holder { position: relative; font-size: 85%; padding: 1.8em 0 0 0; background-color: #D6E1E5; box-shadow: 0 0.5em 1.5em #D6E1E5; } @media only screen and (min-width: 750px) { .progressbar .holder { font-size: 90%; } } @media only screen and (min-width: 900px) { .progressbar .holder { font-size: 95%; } } .progressbar .holder .bar { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background-color: #B6D1DA; } .progressbar .holder .bar .indicator { position: absolute; top: 0; left: 0; height: 100%; background-color: #4598B5; } .progressbar .holder .labels { max-width: 1280px; margin: 0 auto; .........完整代码请登录后点击上方下载按钮下载查看
网友评论0