Firefox和font-family属性的问题 [英] Problems with Firefox and font-family property

查看:97
本文介绍了Firefox和font-family属性的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我遇到一些问题,Firefox没有使用

正确字体呈现元素。我在样式表类中使用font-family样式

定义。然后我设置我正在创建的元素以使用该类,并且

字体未正确显示。如果我将font-family设置为arial或者

Comic Sans MS字体显示正确,但我试图使用

" Webdings"字体,安装在我的电脑上。所有字体使用IE6正确显示

。有什么想法吗?


..cartSlct

{

font-family:webdings;

字体-size:12pt;

光标:默认;

宽度:5%;

}


cellSlct = newRow.insertCell(-1)

cellSlct.appendChild(winDVDCart.document.createTex tNode(" 4"))


文字应该显示为指向右侧的箭头

I am having some issues with Firefox not rendering an element with the
correct font. I am using the font-family style within a stylesheet class
definition. I then set the element I am creating to use that class and the
font is not showing correctly. If I set the font-family to "arial" or
"Comic Sans MS" the font shows correctly, however I am trying to use the
"Webdings" font, which is installed on my computer. All fonts show
correctly using IE6. Any ideas?

..cartSlct
{
font-family:webdings;
font-size:12pt;
cursor:default;
width:5%;
}

cellSlct=newRow.insertCell(-1)
cellSlct.appendChild(winDVDCart.document.createTex tNode("4"))

The text should display as an arrow pointing to the right

推荐答案

David写道:
我遇到了一些Firefox无法渲染的问题元素与
正确的字体。我在样式表类
定义中使用font-family样式。然后我设置我正在创建的元素以使用该类,并且
字体未正确显示。如果我将font-family设置为arial或者
Comic Sans MS字体显示正确,但我试图使用
Webdings字体,安装在我的电脑上。所有字体都使用IE6正确显示
。有什么想法吗?

.cartSlct
{font-family:webdings;
font-size:12pt;
cursor:default;
宽度:5%;


cellSlct = newRow.insertCell(-1)
cellSlct.appendChild(winDVDCart.document.createTex tNode(" 4"))

文本应显示为指向右侧的箭头
I am having some issues with Firefox not rendering an element with the
correct font. I am using the font-family style within a stylesheet class
definition. I then set the element I am creating to use that class and the
font is not showing correctly. If I set the font-family to "arial" or
"Comic Sans MS" the font shows correctly, however I am trying to use the
"Webdings" font, which is installed on my computer. All fonts show
correctly using IE6. Any ideas?

.cartSlct
{
font-family:webdings;
font-size:12pt;
cursor:default;
width:5%;
}

cellSlct=newRow.insertCell(-1)
cellSlct.appendChild(winDVDCart.document.createTex tNode("4"))

The text should display as an arrow pointing to the right



如果您想要一个右箭头,请使用正确的HTML字符实体,即

''& rarr;''或''→''。



If you want a right arrow, use the proper HTML character entity, i.e.
''→'' or ''→''.


2005年7月18日星期一,David写道:
On Mon, 18 Jul 2005, David wrote:
但是我正在尝试使用Webdings。字体,


不要这样做!
http://ppewww.ph.gla.ac.uk/~flavell/...e-harmful.html

安装在我的电脑上。


但不是我的。

所有字体都使用IE6正确显示。
however I am trying to use the "Webdings" font,
Don''t do that!
http://ppewww.ph.gla.ac.uk/~flavell/...e-harmful.html
which is installed on my computer.
But not on mine.
All fonts show correctly using IE6.




不!也许Internet Exploder会向您展示*您期望的页面*。

但这不正确。 IE因为显示而被破坏,例如

< font face =" Symbol"& Ouml;< / font>

作为平方根符号。但是& Ouml;是一个变音符号,而不是一个平方根。
http://www.unics.uni-hannover.de/nht...quareroot.html



No! Maybe Internet Exploder shows you the page as *you expected*.
But that isn''t correct. IE is broken since it displays, e.g.
<font face="Symbol">&Ouml;</font>
as a square root sign. But &Ouml; is an umlaut, not a square root.
http://www.unics.uni-hannover.de/nht...quareroot.html


CA Upsdel​​l写道:
C A Upsdell wrote:
如果你想要一个右箭头,请使用正确的HTML字符实体,即
''& rarr;''或''→''。
If you want a right arrow, use the proper HTML character entity, i.e.
''&rarr;'' or ''→''.




嗯,我想要使用的右箭头实际上是HTML

字符实体''& rArr;''或''⇒''但现在IE已经决定它不会像那个一样只显示一个盒子。另外,我如何将HTML

字符实体引用放入我的createTextNode语句中,将任何内容解释为文本以外的任何东西似乎都不是b $ b。 />

cellSlct.appendChild(winDVDCart.document.createTex tNode(& rArr;"))


这看起来怎么样? (对不起,如果这个问题实际上应该在其他地方张贴

,但是因为我在这里开始了这个话题......)



Well, the right arrow that I would LIKE to use is actually the HTML
character entity ''&rArr;'' or ''⇒'' but now IE has decided it doesn''t
like that one and only displays a box. In addition, how would I put an HTML
character entity reference into my createTextNode statement, it doesn''t seem
to interpret anything as anything more than text.

cellSlct.appendChild(winDVDCart.document.createTex tNode("&rArr;"))

How should this look? (sorry if this question should actually be posted
somewhere else, but since I started the topic here....)


这篇关于Firefox和font-family属性的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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