本文介绍了包含背景图像的div在asp中向上和向下移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在与母版页连接的asp内容页面中有一个包含背景图像的div

我的问题是当我们使用鼠标向下移动浏览器的滚动条或使用键盘的向下箭头键来查看内容时页脚或类似的东西,当浏览器的滚动条向上移动时,asp页面向上移动,反之亦然,asp页面向下移动。



i使用了style = position:绝对对于div而且还尝试使用style =position:fixed但是这不适用于母版页内容并且已经使用了来自堆栈溢出的
jqueries,但它仍然不起作用。还试过



I have a div containing background image in asp content page connected with master page
my problem is when we moves scrollbar of browser downward using mouse or by using down arrow key of keyboard to see content of footer or something like that the asp page is moved upward and vice versa when scroll bar of browser is moved upward the asp page is moved down.

i have used style="position:absolute" for div and also tried using style="position:fixed" but that doesn't work with master page content and have used
jqueries from stack overflow but still it didn't work. also tried

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



以及我在我的网页上运行asp计时器及其勾选事件


along with this i am running asp timer on my webpage with its tick event

<asp:Timer ID="tm" runat="server" Enabled="true" Interval="1000"    OnDisposed="Timer_Disposed" OnTick="Timer_Tick" ></asp:Timer>



如果这是计时器嘀嗒事件的暂停,那么嘀嗒间隔为1秒,然后请给我一个b $ b

请帮我解决这个问题。


with a tick interval of 1 sec if this is beacuase of timer tick event then pls

pls help me out with this .

推荐答案


这篇关于包含背景图像的div在asp中向上和向下移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 17:34