更改所有网站的字体大小 [英] Change font size for all website

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

问题描述

大家好

我有一个网站(asp.net/c#),我想使用户能够更改网站的字体大小(小,中,大),是否有可以执行此操作的脚本,我使用多个CSS类和字体专业是"PX"

谢谢与问候
我想说这个功能将不合时宜,因为大多数(如果不是全部)现代功能齐全的Web浏览器都具有更改大小的功能.一些问题是:更加现代的功能正在通过图形缩放它;您可能想避免它.

无论如何,使用ASP.NET,您可以轻松实现这一目标.一种方法是非常通用的:不仅可以更改字体,还可以更改字体.您可以创建不同的主题/皮肤并动态更改它们.
请参阅本文: http://www.beansoftware.com/ASP.NET-Tutorials/Themes -Skins.aspx [ ^ ].

—SA


Hi every body

I have a website (asp.net/c#) and i want to enable the user to change the font size of the website (small,midium,large) ,is there any script which can do this,i use multiple css classes and the font major is "PX"

Thanks & regards
Mona

解决方案

I would say this feature will be out of fashion as most (if not all) modern full-featured Web browser have the capability of changing the sizes. Some problem is: even more modern feature is scaling it with graphics; you may want to avoid it.

Anyway, with ASP.NET you can simply achieve this. One of the approaches is very general: you can change not just font; you can create different themes/skins and change them dynamically.
Please see this article: http://www.beansoftware.com/ASP.NET-Tutorials/Themes-Skins.aspx[^].

—SA


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

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