![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
js
文章平均质量分 87
senvenfootgao
这个作者很懒,什么都没留下…
展开
-
使用javascript获取屏幕尺寸
var bodyWidth =document.body.clientWidth; //网页可见区域宽 var bodyHeight =document.body.clientHeight; //网页可见区域高 var bodyWidthWithBorder =document.body.offsetWidth; //网页可见区域宽(包括边线的宽) var bodyHeightWithBor...原创 2011-08-27 10:26:49 · 72 阅读 · 0 评论 -
IE和Firefox浏览器下js css的兼容性分析
首先你要在每个页面执行javascript之前引入下面这个我做好的兼容文件。 IEFirefox.js 1. obj.firstChild/.lastChild/.nextSibling/.childNodes/.previousSibling should be changed. <!-- [if supportFields]><sp...原创 2011-08-28 14:31:02 · 77 阅读 · 0 评论