<!DOCTYPE html>
<html>
<head>
<title>js18.html</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<!--<link rel="stylesheet" type="text/css" href="./styles.css">-->
<!-- screen对象的使用方法 -->
<script type="text/javascript">
with(document){
write("屏幕设定值" + "<br>");
write("实际高度: " + screen.availHeight, "<br>");
write("实际宽度: " + screen.availWidth, "<br>");
write("屏幕区域高度: ",screen.height, "<br>");
write("屏幕区域宽度: " ,screen.width, "<br>");
}
</script>
</head>
<body>
This is my HTML page. <br>
</body>
</html>
javascript screen 方法
最新推荐文章于 2024-01-22 09:27:47 发布