更改样式表类中的字体大小 [英] change font size in stylesheet class

查看:70
本文介绍了更改样式表类中的字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

基本问题,这可能吗?


我已设法使用javascript函数,允许用户增加或减少字体大小页面。 (参见
http:// www.northamptontoday.co.uk/Vi...ticleID=867063

例如。右上角的A + A-。


div id用于将函数应用于该id中的文本。


我的问题:我正在使用大型内部网,所有页面

内容写在表格中,因此如果我有一个函数

控制TH类,我可以将它应用到所有页面。


我'对代码不好,所以你可能要把它拼出来,如果你是

感觉仁慈吗?

任何帮助都非常感谢

Ta

Luke

解决方案

2004年10月8日02:40:24 -0700,lharby写道:

基本问题,这可能吗?

我设法让一个javascript函数允许我们呃要增加或减少页面的字体大小。


浏览器已经让用户能够增加或减少字体大小。

..(参见
http://www.northamptontoday.co .uk / Vi ... ticleID = 867063
例如。右上角的A + A-)。


在Mozilla中断。


错误:document.all没有属性

源文件: http://...FontSizeFoot.js ...

div id用于将函数应用于该id中的文本。


如果用户需要更大的字体,为什么不在整个页面上把它变大?

?文本的其余部分是不必要的废话吗?

我的问题:我正在使用大型内联网,


一个Win / IE内联网?

..所有页面
内容都写在表格中,因此如果我有一个控制TH类的功能,我可以将它应用到所有页面。



你可以申请

身体{

字体大小:100%;

}


然后链接到如何在IE中缩放文本的说明。

Alt V | X | G, - Alt V | X | A(最大和最小)。


如果你有一个混合的浏览器,那么它会变得有点复杂,但是当前的指令与用户相关s

UA并且每个人都会很高兴,在所有页面上获得内置的文本大小。


[注:跟随设置为ciwastylesheets]


HTH


-

Andrew Thompson
http://www.PhySci.org/codes/ Web& ; IT帮助
http://www.PhySci.org/ 开源软件套件
http://www.1point1C.org/ Science&技术
http://www.lensescapes.com/ 图像逃脱mundane


在comp.infosystems中。 www.authoring.stylesheets,comp.lang.javascript

lharby说:

我设法将一个javascript函数允许用户增加或减少页面的字体大小。




如果你一开始并不熟悉字体大小它不需要雇用一个愚蠢的无心新手噱头,所以

访客可以将他们的字体改回他们喜欢的尺寸。你是一个

白痴。

-

littlevoices


brucie写道:

在comp.infosystems中。 www.authoring。样式表,comp.lang.javascript
lharby说:

我设法让一个javascript函数允许用户
增加或减少页面的字体大小。



如果你没有首先使用字体大小,那么
就不会了有必要聘请一个愚蠢的无心新手噱头,以便访客可以将他们的字体改回他们喜欢的大小。你是个白痴。




卢克 - 欢迎来到ciwas。 Brucie确实有一点意见,虽然我想象你不会写原始内容。


留待它浏览器调整字体大小,如果原作者

不足以指定不合适的大小。


-

Mark 。
http://tranchant.plus.com/


Basic question, is this possible?

I have managed to crib a javascript function that allows the user to
increase or decrease the font size of a page. (see
http://www.northamptontoday.co.uk/Vi...ticleID=867063
for example. A+ A- in top right).

A div id is used to apply the function to text within that id.

My problem: I am working with a large intranet, all of the page
content is written in tables, therefore if I could have a function
which controlled the TH class, I could apply this to all the pages.

I''m no good with code, so you might have to spell it out, if you are
feeling benevolent?
Any help much appreciated
Ta
Luke

解决方案

On 8 Oct 2004 02:40:24 -0700, lharby wrote:

Basic question, is this possible?

I have managed to crib a javascript function that allows the user to
increase or decrease the font size of a page.
Browsers already give the user the ability to
increase or decrease the font size.
..(see
http://www.northamptontoday.co.uk/Vi...ticleID=867063
for example. A+ A- in top right).
That breaks in Mozilla.

Error: document.all has no properties
Source File: http://...FontSizeFoot.js ...
A div id is used to apply the function to text within that id.
If the user needs the font bigger, why not make it bigger for
the entire page? Is the rest of the text simply unnecessary crap?
My problem: I am working with a large intranet,
A Win/IE intranet?
..all of the page
content is written in tables, therefore if I could have a function
which controlled the TH class, I could apply this to all the pages.



You could apply
body {
font-size: 100%;
}

Then link to instructions on how to zoom text in IE.
Alt V | X | G, - Alt V | X | A (largest and smallest).

It becomes a little more complicated if you have a mix
of browsers, but present instructions relevant to the user''s
UA and everybody will be happy, getting the text size they
need at that moment on all pages, inbuilt.

[ Note: Follow-Ups set to c.i.w.a.stylesheets ]

HTH

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane


In comp.infosystems.www.authoring.stylesheets,comp.lang.javascript
lharby said:

I have managed to crib a javascript function that allows the user to
increase or decrease the font size of a page.



if you didn''t fuck around with the font size in the first place it
wouldn''t be necessary to employ a dumb mindless newbie gimmick so the
visitor can change their font back to their preferred size. you''re an
idiot.
--
l i t t l e v o i c e s


brucie wrote:

In comp.infosystems.www.authoring.stylesheets,comp.lang.javascript
lharby said:

I have managed to crib a javascript function that allows the user to
increase or decrease the font size of a page.


if you didn''t f*** around with the font size in the first place it
wouldn''t be necessary to employ a dumb mindless newbie gimmick so the
visitor can change their font back to their preferred size. you''re an
idiot.



Luke - welcome to ciwas. Brucie does have a point, although I''d imagine
(and hope) that you didn''t write the original content.

Leave it to the browser to resize fonts, if the original author was
inconsiderate enough to specify an inappropriate size.

--
Mark.
http://tranchant.plus.com/


这篇关于更改样式表类中的字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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