You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.6 KiB
80 lines
2.6 KiB
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>专题报道</title>
|
|
<link rel="stylesheet" href="css/foucsreport.css">
|
|
</head>
|
|
<body>
|
|
<div class="Progress">
|
|
<div class="Prostick"></div>
|
|
</div>
|
|
<div class="navbar">
|
|
<div class="navinit">
|
|
<div class="logo">web新闻网站</div>
|
|
<div class="navbtnpart">
|
|
<div class="navbtn"><a href="index.html">首页</a></div>
|
|
<div class="navbtn"><a href="newsclass.html">新闻分类</a></div>
|
|
<div class="navbtn"><a href="#">专题报道</a></div>
|
|
<div class="navbtn"><a href="#">新闻资讯</a></div>
|
|
<div class="navbtn"><a href="#">互动交流</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mainbody">
|
|
<div class="titlebar">
|
|
<div class="title">《专题报道》
|
|
<a href="#">更多>>></a>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="reportbox">
|
|
<div class="boxtitle"></div>
|
|
<div class="boxcover"></div>
|
|
<div class="boxinfo"></div>
|
|
</div>
|
|
<div class="reportbox">
|
|
<div class="boxtitle"></div>
|
|
<div class="boxcover"></div>
|
|
<div class="boxinfo"></div>
|
|
</div>
|
|
<div class="reportbox">
|
|
<div class="boxtitle"></div>
|
|
<div class="boxcover"></div>
|
|
<div class="boxinfo"></div>
|
|
</div>
|
|
<div class="reportbox">
|
|
<div class="boxtitle"></div>
|
|
<div class="boxcover"></div>
|
|
<div class="boxinfo"></div>
|
|
</div>
|
|
<div class="reportbox">
|
|
<div class="boxtitle"></div>
|
|
<div class="boxcover"></div>
|
|
<div class="boxinfo"></div>
|
|
</div>
|
|
<div class="reportbox">
|
|
<div class="boxtitle"></div>
|
|
<div class="boxcover"></div>
|
|
<div class="boxinfo"></div>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="footer">web新闻网站</div>
|
|
<script>
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
|
|
|
|
totalHight = document.body.scrollHeight - window.innerHeight;
|
|
});
|
|
const Prostick = document.querySelector('.Prostick')
|
|
window.addEventListener('scroll', function () {
|
|
let pro = (window.pageYOffset / totalHight) * 100;
|
|
Prostick.style.width = pro + '%';
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |