更改JavaScript加载的浏览器 [英] Change Browser zood by JavaScript

查看:77
本文介绍了更改JavaScript加载的浏览器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好.
有没有确定和跨浏览器的方式,可以增加和减小浏览器的缩放级别.
我的意思是我要2个按钮+,-如果有人单击这些按钮,我们可以通过Java脚本增加(+)和减少(-)浏览器的缩放级别.

有什么建议吗?
事前感谢.

Hi every one.
Is there any sure and cross browser way, to increase and decrease zoom level of browser.
I mean that i wanna 2 buttons + , - if someone click on these button we can Increase(+), and Decrease(-) the browser zoom level by java script.

Any suggestion?
Thanks in advance.

推荐答案

问题是:尽管我在所有知名浏览器中都已司空见惯,但浏览器缩放与标准功能完全不同.如何通过JavaScript之类的标准语言进行访问? (标准为EMCAScript, http://en.wikipedia.org/wiki/ECMAScript [ http://stackoverflow.com/questions/1055336/changing-the-browser-zoom级 [ ^ ].

我宁愿依靠浏览器缩放功能以及用户对其的使用.您可以进行业务处理,而不是允许在不同的合理缩放级别下缩放并看起来不错的Web应用程序设计.

—SA
The thing is: browser zoom is not anything like a standard feature, even though I became a commonplace in all well-known browsers, so, how can it be accessible via a standard language like JavaScript? (The standard is EMCAScript, http://en.wikipedia.org/wiki/ECMAScript[^]). You can zoom the content itself, but this is not the same as browser zoom, which works in different ways in different browsers.

See also: http://stackoverflow.com/questions/1055336/changing-the-browser-zoom-level[^].

I would prefer to rely on the browser zoom feature and the user use of it. You business it rather the Web application design tolerant to zooming and looking nice at different reasonable zoom levels.

—SA


这篇关于更改JavaScript加载的浏览器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆