刘建广

博客园 首页 联系 订阅 管理

随笔分类 -  浏览器

摘要:if(window.addEventListener) { FixPrototypeForGecko(); } function FixPrototypeForGecko() { HTMLElement.prototype.__defineGetter__("runtimeStyle",element_prototype_get_runtimeStyle); window.constructor.prototype.__defineGetter__("event",window_prototype_get_event); Event.prototype. 阅读全文
posted @ 2013-01-31 10:28 刘建广 阅读(366) 评论(0) 推荐(0)

摘要:关于获取各种浏览器可见窗口大小的一点点研究<script> function getInfo() { var s = ""; s = " 网页可见区域宽:" document.body.clientWidth; s = " 网页可见区域高:" document.body.clientHeight; s = " 网页可见区域宽:" document.body.offsetWidth " (包括边线和滚动条的宽)"; s = " 网页可见区域高:" document. 阅读全文
posted @ 2012-07-03 11:04 刘建广 阅读(636) 评论(0) 推荐(0)