화면 개체

screen

screen 객체는 화면 정보를 나타냅니다.

screen.width: 화면 너비(픽셀 단위)

screen.height: 화면 높이 픽셀 단위,

screen.colorDepth: 8, 16, 24와 같은 색상 자릿수를 반환합니다.

아아아아아아아아아


지속적인 학습
||
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<body>
<h3>Your Screen:</h3>
<script>
document.write("使: ");
document.write(window.screen.availWidth + "*" + screen.availHeight);
document.write("<br>");
document.write(": ");
document.write(screen.availWidth + "*" + window.screen.height);
document.write("<br>");
document.write(": ");
document.write(window.screen.colorDepth);
document.write("<br>");
document.write("psIE: ");
document.write(screen.pixelDepth);
</script>
<body>
</body>
</html>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
图片放大关闭