JavaScript: The Definitive Guide, Sixth Editio javaScript权威指南(第6版) pdf 文字版-文字版, javascript电子书, 和javascript 有关的电子书:

14.4.2 The Screen Object

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
友情链接It题库(ittiku.com)| 版权归yishouce.com所有| 友链等可联系 admin#yishouce.com|粤ICP备16001685号-1