问题描述
我遇到一些问题,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
推荐答案
如果您想要一个右箭头,请使用正确的HTML字符实体,即
''& rarr;''或''→''。
If you want a right arrow, use the proper HTML character entity, i.e.
''→'' or ''→''.
不!也许Internet Exploder会向您展示*您期望的页面*。
但这不正确。 IE因为显示而被破坏,例如
< font face =" Symbol"& Ouml;< / font>
作为平方根符号。但是& Ouml;是一个变音符号,而不是一个平方根。
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">Ö</font>
as a square root sign. But Ö is an umlaut, not a square root.
http://www.unics.uni-hannover.de/nht...quareroot.html
嗯,我想要使用的右箭头实际上是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 ''⇒'' 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("⇒"))
How should this look? (sorry if this question should actually be posted
somewhere else, but since I started the topic here....)
这篇关于Firefox和font-family属性的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!