|
|
@ -20,10 +20,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
<div class="navbar-right">
|
|
|
|
<div class="navbar-right">
|
|
|
|
<a href="index.html" class="active">首页</a><div class="line"></div>
|
|
|
|
<a href="index.html" class="active">首页</a><div class="line"></div>
|
|
|
|
<a href="news-categories.html">新闻分类</a>
|
|
|
|
<a href="#">新闻分类</a>
|
|
|
|
<a href="special-reports.html">专题报道</a>
|
|
|
|
<a href="#">专题报道</a>
|
|
|
|
<a href="news-updates.html">新闻资讯</a>
|
|
|
|
<a href="#">新闻资讯</a>
|
|
|
|
<a href="interaction.html">互动交流</a>
|
|
|
|
<a href="#">互动交流</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="carousel-container">
|
|
|
|
<div class="carousel-container">
|
|
|
@ -63,7 +63,7 @@
|
|
|
|
let pro = (window.pageYOffset / totalhHght) * 100
|
|
|
|
let pro = (window.pageYOffset / totalhHght) * 100
|
|
|
|
Prostick.style.width = pro + '%'
|
|
|
|
Prostick.style.width = pro + '%'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
const list =document.querySelector('.navbar-right')
|
|
|
|
const list = document.querySelector('.navbar-right a')
|
|
|
|
const line = document.querySelector('.line')
|
|
|
|
const line = document.querySelector('.line')
|
|
|
|
list.addEventListener('click',function(e){
|
|
|
|
list.addEventListener('click',function(e){
|
|
|
|
if (e.target.tagName === 'A'){
|
|
|
|
if (e.target.tagName === 'A'){
|
|
|
|