网页可见区域宽: 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 "  >

</div>

<div  >

</div>

如果出现的 dome1和dome2重叠的时候只要有overflow:hidden    这两个层就不可能重叠。

相关文章:

  • 2022-12-23
  • 2021-08-16
  • 2021-04-17
  • 2018-01-10
  • 2021-12-26
  • 2021-07-24
  • 2021-08-08
猜你喜欢
  • 2021-08-26
  • 2021-09-04
  • 2019-05-27
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
  • 2022-12-23
相关资源
相似解决方案