All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
在ASP.NET中使用AJAX的简单方法_.net资料_编程技术
Asp.Net,Ajax+WCF,Service+ADO.NET,Entity,Framework_[Asp.Net教程]
C#教程:COM+组件建立客户端程序
SQL Server 2005重新安装不上的问题及其解决_[SQL Server教程]
WEB 2.0中AJAX应用的详细探讨_[AJAX教程]
phpMyAdmin安装配置方法全过程_php资料_编程技术
五个SQL,Server数据库备份与恢复必需知道并且会用的具体操作_mssql学习_编程技术
Sqlserver数据库安全配置九大措施_[SQL,Server教程]
从多个位置截取字符串的SQL语句_[SQL Server教程]
Asp实现获取xml中的内容_[XML教程]
Reading number is top 10 pictures
到南昌西站了2
I also want to live a June 1 children's day, dad
The real super beauty6
The money of more than 100 countries and regions11
西游日记3
什么叫国家
2012 national geographic daily picture1
The world's top ten most beautiful railway station2
Parking technology is great, that give you the keys can't stolen
你白吃了多少药
Download software ranking
JSP+Ajax Web development typical examples
Popkart Cracked versions Mobile phone games
电脑知识及技巧大合集
Rio big adventure
SP3 for SQL2000
C语言教程TXT
Tram sex maniac 2 (H) rar bag5
天龙八部最新服务端
apache-tomcat-6.0.33
Ashlynn Video3
delv published in(发表于) 2014/1/8 7:01:59 Edit(编辑)
ASP.Net中无法用JS实现图片随屏幕移动的解决办法_[Asp.Net教程]

ASP.Net中无法用JS实现图片随屏幕移动的解决办法_[Asp.Net教程]

ASP.Net中无法用JS实现图片随屏幕移动的解决办法_[Asp.Net教程]

在纯HTML文件中用javascript可以正常实现图片随屏幕移动,但是同一段javascript代码在asp.net页面中就没有半点反应,图片无法随屏幕移动。
主要原因:
在asp.net页面中,使用如下标准:



这样就会造成document.body.scrollTop永远等于0


解决办法:
将document.body.scrollTop改为document.documentElement.scrollTop 即可恢复正常。


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.