与ClientWidth有关的一点资料

时间:2024-04-22 22:25:08 

<html> <head> <title>51windows.Net </title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <style type="text/css"> </style> </head> <body> <SCRIPT LANGUAGE="JavaScript"> var  s = ""; s += " 网页可见区域宽:"+ document.body.clientWidth; s += "网页可见区域高:"+ document.body.clientHeight; s += " 网页可见区域宽:"+ document.body.offsetWidth  +" (包括边线的宽)"; s += " 网页可见区域高:"+ document.body.offsetHeight +" (包括边线的宽)"; s += "网页正文全文宽:"+ document.body.scrollWidth; s += " 网页正文全文高:"+ document.body.scrollHeight; s += " 网页被卷去的高:"+ document.body.scrollTop; s += " 网页被卷去的左:"+ document.body.scrollLeft; s += " 网页正文部分上:"+ window.screenTop; s += " 网页正文部分左:"+ window.screenLeft; s += " 屏幕分辨率的高:"+ window.screen.height; s += "屏幕分辨率的宽:"+ window.screen.width; s += " 屏幕可用工作区高度:"+ window.screen.availHeight; s += " 屏幕可用工作区宽度:"+ window.screen.availWidth; alert(s); </SCRIPT> </body> </html>


标签:与ClientWidth有关的一点资料
0
投稿

猜你喜欢

  • PhpStorm的使用教程(本地运行PHP+远程开发+快捷键)

    2024-05-03 15:13:22
  • 对Python 两大环境管理神器 pyenv 和 virtualenv详解

    2022-05-02 11:27:40
  • .NET中IoC框架Autofac用法讲解

    2024-06-05 09:26:21
  • vue awesome swiper异步加载数据出现的bug问题

    2024-05-03 15:10:58
  • asp实现新评论自动发短信提示的代码

    2011-03-07 10:38:00
  • Oracle 存储过程总结(一、基本应用)

    2009-07-07 10:21:00
  • Python Pyperclip模块安装和使用详解

    2023-06-25 13:52:11
  • pandas 对日期类型数据的处理方法详解

    2021-12-02 04:43:56
  • 简单了解Django项目应用创建过程

    2022-04-22 06:06:21
  • 使用Python点云生成3D网格

    2023-02-06 18:32:45
  • Python图像处理实现两幅图像合成一幅图像的方法【测试可用】

    2022-11-13 08:36:56
  • python中子类继承父类的__init__方法实例

    2022-05-27 19:37:21
  • Python3 mmap内存映射文件示例解析

    2021-07-14 15:05:50
  • 在一个网站下再以虚拟目录的方式挂多个网站的方法

    2023-07-24 01:03:57
  • python绘图库Matplotlib的安装

    2023-09-26 19:32:22
  • Oracle常见错误代码的分析与解决

    2024-01-14 20:28:51
  • HTML5 Canvas 起步(3) - 颜色与渐变

    2009-06-08 12:58:00
  • Python中的正则表达式与JSON数据交换格式

    2023-06-21 18:16:26
  • 详解python的字典及相关操作

    2023-03-28 08:52:42
  • 数字格式化转换

    2010-08-03 12:22:00
  • asp之家 网络编程 m.aspxhome.com