我正在寻找一种无插件方法来获取可见视口(viewport)右边缘的 x 坐标,同样,使用 jQuery 或“纯“JavaScript”。
谢谢!
最佳答案
var width = document.documentElement.clientWidth || window.innerWidth;
var height= document.documentElement.clientHeight|| window.innerHeight;
关于javascript - 视口(viewport)右下边缘的 x、y 位置(分别)?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13896407/