如何使用Prototype.js 1.6.0.3版获取浏览器窗口的大小? 根据原型API documentation: var viewport = document.viewport.getDimensions(); // Gets the viewport as an object literalvar width = viewport.width; // Usable window wi
var viewport = document.viewport.getDimensions(); // Gets the viewport as an object literal var width = viewport.width; // Usable window width var height = viewport.height; // Usable window height