14.4.2 The Screen Object
The screen property of a Window object refers to a Screen object that provides information about the size of the user’s display and the number of colors available on it. The width and height properties specify the size of the display in pixels. The avail Width and availHeight properties specify the display size that is actually available; they exclude the space required by features such as a desktop taskbar. The colorDepthproperty specifies the bits-per-pixel value of the screen. Typical values are 16, 24, and 32.
The window.screen property and the Screen object to which it refers are both nonstandard but widely implemented. You might use the Screen object to determine whether your web app is running in a small form factor device such as a netbook computer. If screen space is limited, you might choose to use smaller fonts and images, for example.欢迎转载,转载请注明来自一手册:http://yishouce.com/book/1/31422.html