如何在网页上设置字体文字大小:[A(小字体)| A(中等字体)| A(大字体)] [英] How to setup Font Text Size on webpage: [A (small font) | A (medium font) | A (large font) ]

查看:194
本文介绍了如何在网页上设置字体文字大小:[A(小字体)| A(中等字体)| A(大字体)]的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hello

我正在使用Microsoft表达式设计网站。

我需要帮助,如何设置字体 文字大小 选项 [ A (小字体) | A (中等字体) | A (大字体) ] 在我的网页上,以便用户可以在查看我的网站时选择他们想要的文字大小。

I need help on how to set up Font Text Size options: [A (small font) | A (medium font) | A (large font) ] on my webpages so that users can select the text size they want when viewing my site.

Andy

推荐答案

这是一种方式:
http://devolux.org/2009/03/jquery-font-resizer/

这是另一个:
http://labnol.blogspot.com/2006/12/allow-site-visitors -to-change-font.html


我过去的方式是:1)给出调整大小的链接
2)当选择一个链接并设置一个cookie时3)检查任何页面加载时cookie的存在,并用PHP打印出一个调整大小的CSS样式表
4)任何时候有人访问网站,检查cookie并打印出相应的样式表
Here's one way:
http://devolux.org/2009/03/jquery-font-resizer/

Here's another:
http://labnol.blogspot.com/2006/12/allow-site-visitors-to-change-font.html


The way I have done it in the past is:
1) Give the links for resizing
2) When a link is selected process that and set a cookie
3) Check the presense of the cookie when any page loads and, with PHP, print out a resizing CSS stylesheet
4) Anytime someone visits the site, check for the cookie and print out the appropriate stylesheet


这篇关于如何在网页上设置字体文字大小:[A(小字体)| A(中等字体)| A(大字体)]的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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