默认的Web字体 [英] default web font

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

问题描述

我添加包含相邻的一个LinkBut​​ton文本一个asp.net的ImageButton。我创建了使用图像编辑器ImageButton的形象,我需要知道的LinkBut​​ton在使用什么字体。我试过萤火虫,但我仍然不明白它。

i am adding an asp.net ImageButton that contains text adjacent to a LinkButton. i am creating the image for the ImageButton using an image editor and i need to know what font the LinkButton is using. i've tried firebug but i still can't figure it.

推荐答案

无论字体和大小用来绘制图像上的文字,它不会看一样在浏览器中所有用户的文本。根据在操作系统中显示文本,这将使文本的外观大diffence,而且还有定期抗锯齿和ClearType的之间的一些差异,当一些浏览器将使用抗锯齿的设置。 (在Windows 7中会有所不同,甚至更多,因为它有微调的ClearType向导为您的特定的屏幕,所以会有成千上万的ClearType的呈现方式的变化。)

Whatever font and size you use to draw text on the image, it will not look the same as the text in the browser for all users. Depending on the settings in the operating system some browsers will use anti-aliasing when displaying text, which will make a big diffence for the look of the text, and there is also some difference between regular anti-aliasing and cleartype. (In Windows 7 it will differ even more as it has a wizard for fine tuning cleartype for your specific screen, so there will be thousands of variations of how cleartype is rendered.)

而不是把文本图像中的,使用图像作为背景的​​按钮,让浏览器中显示的图像的顶部的文本。

Instead of putting the text in the image, use the image as background for a button and let the browser display the text on top of the image.

例如:

<asp:Button runat="server" class="FancyButton" Text="click me" />

CSS:

.FancyButton {
   background: url(fancybutton.gif);
   border: none;
   width: 80px;
   height: 25px;
}

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

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