如何检测 IE 8 中的页面缩放级别?
可悲的是,我对此没有一个足够好的解决方案 generic问题。
投票最多的&接受的答案似乎不适用于 IE 8.0.7601.17514(最新)。 另一个答案很接近工作 - 但它对我来说总是关闭 20%,可能是因为我在 Windows 中定义了大字体。我想我无法在 javascript 中检测到这一点,所以这也不是一个可靠的答案(尽管它实际上可能适用于 95% 的 IE 用户......我可能会使用它作为解决方法)。
有没有更好、更可靠的方法来检测 IE 8 中当前页面的缩放比例?
Sadly I didn't a good enough solution on this generic question.
The most upvoted & accepted answer does't seem to work for me on IE 8.0.7601.17514 (latest). Another answer came close to working - but it is always off for me by 20%, probably because I have large fonts defined in Windows. I'm imagine I can't detect this in javascript, so this is not a solid answer as well (even though it might actually work for 95% of IE users ... I might use it as a workaround).
Is there a better, solid way to detect what the current page zoom is in IE 8?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我相信您可以通过屏幕对象访问它:
并相对于默认值进行缩放:
未经测试:)
I believe you can access it via the screen object:
and zoom relative to default:
untested :)