on 2013-08-03
innerHeight & innerWidth
抓取瀏覽器目前顯示高度與寬度 一般都用
window.innerHeight
與
window.innerWidth
但唯獨IE6~IE8不行 Google了一下 發現用
window.document.documentElement.clientHeight
與
window.document.documentElement.clientWidth
便兼容所有瀏覽器
scrollHeight
如要抓 document 的高可用
document.body.scrollHeight