任何人有任何想法为什么scrollTop不能在IE中工作?
它适用于Chrome,我不知道firefox.(这个脚本的想法是有一个自动滚动页面,一旦它到达页面底部就会重置)
function getheight() {
var myWidth = 0,
myHeight = 0;
if (typeof (window.innerWidth) == 'number') {
//Non-IE
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) {
//IE 6+ in 'standards compliant mode'
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if (document.body && (document.body.clientWidth || document.body.clientHeight)) {
//IE 4 compatible
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}
var scrolledtonum = window.pageYOffset + myHeight + 2;
var heightofbody = document.body.offsetHeight;
if (scrolledtonum >= …Run Code Online (Sandbox Code Playgroud) 好吧,我目前正在尝试使用Google Appspot托管来构建网站.
我想使用Wordpress制作我网站的博客部分.我如何在Google Appspot上托管Wordpress,尽管它使用Python而另一个使用PHP(如果我没记错的话)?