window对象
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>widnow对象</title>
<style>
div{
width: 2000px;
height: 4000px;
background-image: linear-gradient(to bottom right,red,blue);
}
</style>
</head>
<body>
<div>
<a href="./2.2history对象.html">history对象</a>
</div>
<script>
// inner是指浏览器页面展示宽高
console.log('window.innerWidth',window.innerWidth)
console.log('window.innerHeight',window.innerHeight)
// outer是指整个浏览器宽高
console.log('window.outerWidth',window.outerWidth)
console.log('window.outerHeight',window.outerHeight)
// 整个屏幕的宽度
console.log('screen.availWidth',screen.availWidth)
console.log('screen.availHeight',screen.availHeight)
//window.screenLeft或者window.screenX声