设置IE“光学变焦”功能使用Javascript / CSS [英] Setting IE "Optical Zoom" feature using Javascript/CSS

查看:88
本文介绍了设置IE“光学变焦”功能使用Javascript / CSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我维护的网站设计非常严格,使用像素进行字体大小,尺寸,绝对定位等。

The site I'm maintaining has been designed pretty rigidly using pixels for font sizes, dimensions, absolute positioning etc.

现在有一个功能请求添加字体用户调整大小。虽然我知道如果不使用相对尺寸从头开始重新设计网站是不可能的,我发现该网站与IE7 / IE8缩放功能(Ctrl +& Ctrl - )非常相配。

Now there is a feature request to add font resizing by users. While I know that is impossible without redesigning the site from the ground up using relative dimensions, I discovered that the site plays pretty nicely with the IE7/IE8 zoom feature (Ctrl + & Ctrl -).

问题是,是否有一种方法可以建议IE以默认缩放级别(例如125%)打开此网站,而无需用户自己要求zoom?

The question is, is there a way to 'suggest' IE to open this site at a default zoom level (of say, 125%) without the users themselves requiring to zoom?

该网站仅用于IE 7+。

The site is used with IE 7+ only.

推荐答案

如果这是您的用户选择,请将它留给浏览器最成熟的浏览器我们使用缩放功能放大页面渲染(IE 7& 8,Opera,FireFox,Chrome 2.0,Safari?)。除了取决于您的用户来自哪个系统(屏幕分辨率)将决定他们的缩放选择。不幸的是,每个浏览器处理记住您的缩放设置略有不同,例如每个站点的chrome记忆,而ie是每个新标签/窗口的全局设置。

If this is your users Choice, leave it to their browsers most mature Browsers us a zoom that magnifies their page rendering (IE 7&8, Opera, FireFox, Chrome 2.0, Safari?). Besides depending on which system(screen resolution) your users are coming from will dictate their zoom choice. Unfortunately each browser handles remembering your zoom setting a little different for instance chrome remembers per site while ie is a global setting for each new tab/window.

这篇关于设置IE“光学变焦”功能使用Javascript / CSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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