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.
67 lines
4.9 KiB
67 lines
4.9 KiB
<!DOCTYPE html>
|
|
<html lang="zh">
|
|
<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/newsclass.css">
|
|
<link rel="stylesheet" href="css/common.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 DStyle"><a href="index.html">首页</a></div>
|
|
<div class="navbtn DStyle"><a href="newsclass.html">新闻分类</a></div>
|
|
<div class="navbtn DStyle"><a href="foucsreport.html">专题报道</a></div>
|
|
<div class="navbtn DStyle"><a href="newsinfo.html">新闻资讯</a></div>
|
|
<div class="navbtn DStyle"><a href="#">互动交流</a></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mainbody">
|
|
<div class="classbox">
|
|
<div class="title"><h2>新闻区域方面</h2></div>
|
|
<botton class="swbtn">时政新闻</botton>
|
|
<botton class="swbtn">经济新闻</botton>
|
|
<botton class="swbtn">法律新闻</botton>
|
|
<botton class="swbtn">军事新闻</botton>
|
|
<p>
|
|
示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例
|
|
</p>
|
|
</div>
|
|
<div class="classbox">
|
|
<div class="title"><h2>新闻区域方面</h2></div>
|
|
<botton class="swbtn">时政新闻</botton>
|
|
<botton class="swbtn">经济新闻</botton>
|
|
<botton class="swbtn">法律新闻</botton>
|
|
<botton class="swbtn">军事新闻</botton>
|
|
<p>
|
|
示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例
|
|
</p>
|
|
</div>
|
|
</div>
|
|
<div class="footer">web新闻网站</div>
|
|
<script>
|
|
let totalHight;
|
|
let Prostick;
|
|
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
|
|
|
|
|
|
Prostick = document.querySelector('.Prostick');
|
|
totalHight = document.documentElement.scrollHeight - window.innerHeight;
|
|
});
|
|
window.addEventListener('scroll', function () {
|
|
let pro = (window.pageYOffset / totalHight) * 100;
|
|
Prostick.style.width = pro + '%';
|
|
})
|
|
</script>
|
|
</body>
|
|
</html> |