向下滚动页面时如何移动页面时间 [英] how do i move the time with the page as i scroll down the page

查看:81
本文介绍了向下滚动页面时如何移动页面时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我为一个页面设置了计时器,但是时间太长了,但是如果我需要看它,我必须上去看它,这浪费了我的时间.我希望它随着页面向下滚动而流动,这样我也可以在到达页面末尾时看到计时器.

请帮助我....

i have set a timer for a page which is too long but if i need to see it, i have to go up and see it, which wastes my time. i want it to flow with the page as i scroll down so that i can see the timer when i come to end of page also.

plz help me....

推荐答案

我了解它的需求.好主意,但实施对我来说可能有些困难.另一个想法怎么样:您可以在页面上拥有可滚动和不可滚动的部分,而显示时间的元素(不要称它为timer,这又是不同的)应该保留在不可滚动的部分上?这种技术很常见.

—SA
I understand the need of it. Good thinking, but the implementation could be somewhat difficult to me. How about an alternative idea: you can have scrollable and non-scrollable parts of the page, and your element showing time (don''t call it timer which is something different) should stay on non-scrollable part? This technique is pretty usual.

—SA


Use Two Div...<br />
In first div use Timer...<br />
In Second div apply this Style...


<div style="height:500px; overflow:auto;"></div>


这篇关于向下滚动页面时如何移动页面时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆