问题描述
有没有办法使用javascript来增加整个文档文件
大小,就像你点击View-> Text Size-> Largest,Larger,Medium,
更小,更小?这是在IE浏览器上。
Is there a way to use javascript to increase the overall document text
size, just like if you click View->Text Size->Largest, Larger, Medium,
Smaller, Smallest? This is on IE browser.
推荐答案
你可以动态改变body元素的style.fontSize属性
- 但为什么要这么麻烦?浏览器已经为用户提供了一种选择字体大小的方式,没有必要通过复制
浏览器已经做过的东西来弄脏水。仅适用于一个网站。
-
David Dorward< http://blog.dorward.me.uk/> < http://dorward.me.uk/>
首页是〜/ .bashrc的位置
You could dynamically alter the style.fontSize property of the body element
- but why bother? Browsers already come with a way for the user to choose
their font size, there''s no need to muddy the water by duplicating
something the browser already does but which works only on one website.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
那么为什么不在浏览器中添加字体大小首选项?
} ***通过SPAMSPAMSPAM发送
}不要只是SPAM USENET ......获得奖励!
....虽然没有引用得当。请找一个真正的NNTP服务而不是这个令人讨厌的垃圾邮件的东西。
-
David Dorward< http:/ /blog.dorward.me.uk/> < http://dorward.me.uk/>
首页是〜/ .bashrc的位置
So why not add a font size preference to the browser?
} *** Sent via SPAMSPAMSPAM http://SPAMSPAMSPAMSPAMSPAMSP***
} Don''t just SPAM USENET...get rewarded for it!
.... while failing to quote properly. Please find a real NNTP service rather
than this nasty spammy thing.
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
这篇关于文字大小 - >最大,较大,中等,较小,最小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!