文字大小 - >最大,较大,中等,较小,最小 [英] Text Size -> Largest, Larger, Medium, Smaller, Smallest

查看:84
本文介绍了文字大小 - >最大,较大,中等,较小,最小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法使用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.

推荐答案

dm ** @ yahoo.com 写道:
dm**@yahoo.com wrote:
有没有办法使用javascript来增加整个文档文本的大小,就像你点击View->文字大小 - >最大,较大,中等,较小,最小?这是在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


我试过了已经,它不起作用。它只会更改没有设置大小的文本的大小。大小由字体设置的文本

保持不变。我需要改变整个文档的东西,只需

作为菜单项的工作方式。我需要这个功能,因为我是
写一个自定义浏览器供内部使用。有些用户有问题

看到默认的文字大小,所以他们需要能够调整它的大小。


***通过Developersdex发送 http://www.developersdex.com ***

不要只是参加USENET ...获得奖励!
I have tried that already and it does not work. It only changes the
size of text that does not have a size set. Text with size set by font
remains the same. I need something that changes the whole document, just
as how the menu items work. I need this functionallity because I am
writting a custom browser for internal use. Some users have problems
seeing the default text size so they need to be able to resize it.

*** Sent via Developersdex http://www.developersdex.com ***
Don''t just participate in USENET...get rewarded for it!


Duwayne Sy写道:
Duwayne Sy wrote:
我已经尝试过了,它确实不行。它只会更改没有设置大小的文本的大小。大小按字体设置的文本
保持不变。


< font>已弃用且不应使用。

如果您指定字体大小与字体大小相对单位(%或em是

通常是最佳选择)那么这不是'这是一个问题。

我需要改变整个文档的东西,就像菜单项的工作方式一样。我需要这个功能,因为我正在编写一个自定义浏览器供内部使用。有些用户有问题
看到默认文本大小,所以他们需要能够调整它。
I have tried that already and it does not work. It only changes the
size of text that does not have a size set. Text with size set by font
remains the same.
<font> is deprecated and should not be used.
If you specify your font sizes with font-size relative units (% or em are
typically the best choice) then this isn''t an issue.
I need something that changes the whole document, just
as how the menu items work. I need this functionallity because I am
writting a custom browser for internal use. Some users have problems
seeing the default text size so they need to be able to resize it.




那么为什么不在浏览器中添加字体大小首选项?


} ***通过SPAMSPAMSPAM发送 http:// SPAMSPAMSPAMSPAMSPAMSP ***

}不要只是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


这篇关于文字大小 - &gt;最大,较大,中等,较小,最小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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