允许用户增加字体大小 [英] Allow the user to increase font size

查看:97
本文介绍了允许用户增加字体大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的网站非常小,很简单 - 它主要是文字(目前)。我在设计中使用了很好的混合css。


考虑到可用性我想添加一些特定的功能

(考虑到视力受损)。


我想让网站的用户/读者能够选择另一种字体大小,从下拉框说。这会增加段落标签之间或表数据标签之间任何文本大小的数量。

此设备不是来自

浏览器,但它在网页上是正确的(即

我创建的东西)。


这是完成的事情吗?在HTML或CSS?你可以给我任何

的提示吗?


提前致谢。

解决方案

2005年12月2日18:43:43 -0800,eomer < EO ******* @ yahoo.com>写道:

这是在html或css中完成的吗?你能给我一些关于我可以开始的提示吗?

提前致谢。




我用过的每个浏览器都包含它自己的功能允许用户改变字体大小。例如,转到视图 - 文本大小

IE或Firefox,您可以更改您正在查看的任何HTML

页面的字体大小。


_________________________________________


实用自卫中心

加利福尼亚州里弗赛德
www.centerforpracticalselfdefense.com


在我们的上一集中,

< 11 ********************** @ g43g2000cwa.googlegroups .com> ;,

这位可爱而有才华的人

在comp.infosystems上播出。 www.authoring.html:

我的网站非常小,而且很简单 - 它主要是文本(现在)。我在设计中使用了很好的混合css。
考虑到可用性,我想添加一些特定的功能
(考虑到视力受损)。
我想允许网站的用户/读者能够选择另一种字体大小,比如从下拉框中选择。


什么图形浏览器没有这个功能(在

工具栏选择和键盘快捷键中都有)? Ctrl +为

我做了。

这会增加段落标签或表格数据标签之间任何文本的大小。
此设备不是来自
浏览器的内置选项,而是它在网页上是正确的(即我创建的东西)。


为什么?如果你编写便携式html,你正试图重新发明

轮。

这是在html或css中完成的吗?你能给出我可以开始的任何提示吗?




这似乎是一种脚本语言的工作。

-

Lars Eighner us****@larseighner.com http://www.larseighner.com/

我从未做过但是向上帝祈祷,一个非常短暂的祷告:''主啊,

让我的敌人变得荒谬。''上帝赐予它。 --Voltaire


" eomer" < EO ******* @ yahoo.com>写道:

我想允许网站的用户/读者能够选择另一种字体大小,比如从下拉框中选择。这会增加段落标签之间或表格数据标签中任何文本的大小。
此设备不是
浏览器的内置选项




我不知道你正在使用什么浏览器,但每个浏览器我都知道

*确实*有这样的选项。


sherm--


-

Perl中的Cocoa编程: http://camelbones.sourceforge.net

雇用我!我的简历: http://www.dot-app.org


My site is very small, and plain - it will mostly be text (for now). I
have used a good mix of css in the design.

With usability in mind I would like to add some specific functionality
(with the vision impaired in mind).

I would like to allow the user/reader of the web site the ability to
select another font size, say from a drop downbox. This would increase
the size of any text between paragraph tags, or in table data tags.
This device is not something that is a built in option from the
browser, but instead it is something right on the web page (i.e.
something I created).

Is this something that is done in the html or the css? Can you give any
hints on where I can start?

Thanks in advance.

解决方案

On 2 Dec 2005 18:43:43 -0800, "eomer" <eo*******@yahoo.com> wrote:

Is this something that is done in the html or the css? Can you give any
hints on where I can start?

Thanks in advance.



Every browser I have ever used contains its own features that allow
the user to change font size. For example, go to View - Text Size in
either IE or Firefox, and you can change the font size of any HTML
page you are viewing.

_________________________________________

Center For Practical Self Defense
Riverside, California
www.centerforpracticalselfdefense.com


In our last episode,
<11**********************@g43g2000cwa.googlegroups .com>,
the lovely and talented eomer
broadcast on comp.infosystems.www.authoring.html:

My site is very small, and plain - it will mostly be text (for now). I
have used a good mix of css in the design. With usability in mind I would like to add some specific functionality
(with the vision impaired in mind). I would like to allow the user/reader of the web site the ability to
select another font size, say from a drop downbox.
What graphical browser doesn''t have this feature (both in a
toolbar selection and a keyboard shortcut)? Ctrl+ does it for
me.
This would increase
the size of any text between paragraph tags, or in table data tags.
This device is not something that is a built in option from the
browser, but instead it is something right on the web page (i.e.
something I created).
Why? If you write portable html, you are trying to reinvent the
wheel.
Is this something that is done in the html or the css? Can you give any
hints on where I can start?



This would seem to be a job for a scripting language.
--
Lars Eighner us****@larseighner.com http://www.larseighner.com/
"I have never made but one prayer to God, a very short one: ''O Lord,
make my enemies ridiculous.'' And God granted it." --Voltaire


"eomer" <eo*******@yahoo.com> writes:

I would like to allow the user/reader of the web site the ability to
select another font size, say from a drop downbox. This would increase
the size of any text between paragraph tags, or in table data tags.
This device is not something that is a built in option from the
browser



I don''t know what browsers *you''ve* been using, but every browser I''m aware
of *does* have such an option.

sherm--

--
Cocoa programming in Perl: http://camelbones.sourceforge.net
Hire me! My resume: http://www.dot-app.org


这篇关于允许用户增加字体大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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