设置IE和“光学变焦"使用Javascript/CSS的功能 [英] Setting IE "Optical Zoom" feature using 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%)打开该网站,而用户本身不需要缩放?
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可以记住每个站点,而chrome是每个新标签页/窗口的全局设置.
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屋!