1. screen对象包含有关客户端显示屏幕的信息
    2. screen.availWidth // 屏幕的宽度
    3. screen.availHeight // 屏幕的高度
    4. screen.height // 屏幕分辨率的高
    5. screen.width // 屏幕分辨率的宽
    1. // 获取屏幕的宽度
    2. var screenWidth = window.screen.availWidth;
    3. console.log(screenWidth);
    4. // 获取屏幕的可视区
    5. var viewWidth = document.body.clientWidth;
    6. console.log(viewWidth);