screen示例

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title></title>
</head>
<body>
<script>
console.log(screen.height); // 示例结果:900
console.log(screen.availHeight); // 示例结果:870
console.log(screen.colorDepth); // 示例结果:24
console.log(screen.pixelDepth); // 示例结果:24
</script>
</body>
</html>

posted @ 2020-04-27 13:00  妹妹早上好  阅读(154)  评论(0编辑  收藏  举报