嗨,这可以吗? [确定指定浏览器窗口的大小] [英] Hi, can this be done? [determining size of specified browser window]
本文介绍了嗨,这可以吗? [确定指定浏览器窗口的大小]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
无论如何确定目前的像素高度&
打开浏览器窗口的宽度大小? :)
解决方案
ca ** **** @ gmail.com 在11/1/2006 8:47 PM说下面的内容:
无论如何确定当前像素高度和
打开浏览器窗口的宽度大小? :)
是的。
您的第一个提示是它包含在FAQ中。
-
兰迪
机会有利于预备心灵
comp.lang.javascript常见问题 - http://jibbering.com/faq
Javascript最佳实践 - http://www.JavascriptToolbox.com/bestpractices/
< blockquote>第二个是查看randy'的签名.....
谢谢你。唯一可行的例子(IE> 6.0,
XP)是:
< script>
var winWidth = document.documentElement.clientWidth
var winHeight = document.documentElement.clientHeight
alert(winWidth)
alert(winHeight)
< / script>
winHeight返回为0 ....其他示例显示未定义....
我在这里解析错了吗? :)
Is there anyway to determine the present pixel height & width size of a
open browser window? :)
解决方案
ca******@gmail.com said the following on 11/1/2006 8:47 PM:Is there anyway to determine the present pixel height & width size of a
open browser window? :)Yes.
Your first Hint is that it is covered in the FAQ.
--
Randy
Chance Favors The Prepared Mind
comp.lang.javascript FAQ - http://jibbering.com/faq
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
and the second is check out randy''s signature .....
Thank you for that. The only example that partially works (IE >6.0,
XP) is:
<script>
var winWidth = document.documentElement.clientWidth
var winHeight = document.documentElement.clientHeight
alert(winWidth)
alert(winHeight)
</script>
The winHeight comes back as 0.... the other examples show undefined....
is there something I am parsing wrong here? :)
这篇关于嗨,这可以吗? [确定指定浏览器窗口的大小]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文