|
|
@ -38,9 +38,6 @@
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="newsinfo">
|
|
|
|
<div class="newsinfo">
|
|
|
|
<h3>新闻的定义</h3>
|
|
|
|
<h3>新闻的定义</h3>
|
|
|
|
<p>示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例</p>
|
|
|
|
|
|
|
|
<p>示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例</p>
|
|
|
|
|
|
|
|
<p>示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例</p>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="footer">web新闻网站</div>
|
|
|
|
<div class="footer">web新闻网站</div>
|
|
|
@ -66,7 +63,19 @@
|
|
|
|
li.textContent = item.text;
|
|
|
|
li.textContent = item.text;
|
|
|
|
liContent.appendChild(li);
|
|
|
|
liContent.appendChild(li);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
totalHight = document.body.scrollHeight - window.innerHeight;
|
|
|
|
let newsinfo = [
|
|
|
|
|
|
|
|
{ text: "示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例" },
|
|
|
|
|
|
|
|
{ text: "示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例" },
|
|
|
|
|
|
|
|
{ text: "示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例示例" },
|
|
|
|
|
|
|
|
];
|
|
|
|
|
|
|
|
const pContent = document.querySelector('.newsinfo');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
newsInfo.forEach(item => {
|
|
|
|
|
|
|
|
const p = document.createElement('p');
|
|
|
|
|
|
|
|
p.textContent = item.text;
|
|
|
|
|
|
|
|
pContent.appendChild(p);
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
let totalHight = document.body.scrollHeight - window.innerHeight;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
const Prostick = document.querySelector('.Prostick')
|
|
|
|
const Prostick = document.querySelector('.Prostick')
|
|
|
|
window.addEventListener('scroll', function () {
|
|
|
|
window.addEventListener('scroll', function () {
|
|
|
|