如何在Firefox中获得屏幕高度

时间:2014-06-11 09:43:38

标签: jquery html css

我目前正在使用$(window).height()来获取屏幕高度。但这在firefox中返回0。在firefox中获取高度的任何其他方法??

1 个答案:

答案 0 :(得分:1)

您可以使用screen.heightscreen.width属性来查找屏幕尺寸。 For more info