js部分不常用属性(关于计算距离一些的)
网页可见区域宽: document.body.clientWidth; clientWidth
网页可见区域高: document.body.clientHeight; clientHeight
网页可见区域宽: document.body.offsetWidth
(包括边线的宽); offsetWidth
网页可见区域高: document.body.offsetHeight (包括边线的宽); offsetHeight
网页正文全文宽: document.body.scrollWidth; scrollWidth
网页正文全文高: document.body.scrollHeight; scrollHeight
网页被卷去的高: document.body.scrollTop; scrollTop
网页被卷去的左: document.body.scrollLeft; scrollLeft
网页正文部分上: window.screenTop; screenTop
网页正文部分左: window.screenLeft; screenLeft
屏幕分辨率的高: window.screen.height;
屏幕分辨率的宽: window.screen.width;
屏幕可用工作区高度: window.screen.availHeight; availHeight
屏幕可用工作区宽度:window.screen.availWidth; availWidth
overflow:hidden 用在一个控件中表示该控件不与下一个控件重叠。 举例:
<div style="overflow:hidden " id="dome1">
</div>
<div id="dome2">
</div>
如果出现的 dome1和dome2重叠的时候只要有overflow:hidden 这两个层就不可能重叠。
                    
                
                
            
        
浙公网安备 33010602011771号