UI Experience - 01 JQuery cannot get actual window Size
alert("window height: " + $(window).height());
每次獲得的尺寸都不一樣;高度懷疑是JQuery的bug
當我在jsp/html開頭增加了這么一句
<!DOCTYPE html>
事情搞定分析下來原因是這樣的:
If document is running in Quirks Mode and jQuery can't calculate correct window dimensions
posted on 2014-05-14 11:58 crazycy 閱讀(153) 評論(0) 編輯 收藏 所屬分類: JavaEE技術