动态应用字体系列 [英] dynamically apply a font family

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

问题描述

如何将CSS字体系列(例如,Times,New Century

Schoolbook,serif)应用于对象?这个


obj.style.fontFamily =" Times,''New Century Schoolbook'',serif";


似乎忽略了一切在时代之后。


Andrew Poulos

How do you apply a CSS font-family (say, Times, "New Century
Schoolbook", serif) to an object? This

obj.style.fontFamily = "Times, ''New Century Schoolbook'', serif";

seems to ignore everything after Times.

Andrew Poulos

推荐答案

Andrew Poulos写道:
Andrew Poulos wrote:

如何将CSS字体系列(例如,Times,New Century

Schoolbook,serif)应用于对象?这个


obj.style.fontFamily =" Times,''New Century Schoolbook'',serif";

How do you apply a CSS font-family (say, Times, "New Century
Schoolbook", serif) to an object? This

obj.style.fontFamily = "Times, ''New Century Schoolbook'', serif";



似乎忽略了时代之后的一切。

seems to ignore everything after Times.


>
>



嗯,它应该是,如果时代可用。

Mick

Well, it should, if "Times" is available.
Mick


Michael White写道:
Michael White wrote:

Andrew Poulos写道:
Andrew Poulos wrote:

>如何将CSS字体系列(例如,Times,New Century
Schoolbook,serif)应用于对象?这个

obj.style.fontFamily =" Times,''New Century Schoolbook'',serif";

>How do you apply a CSS font-family (say, Times, "New Century
Schoolbook", serif) to an object? This

obj.style.fontFamily = "Times, ''New Century Schoolbook'', serif";



似乎在时代之后忽略了一切。


seems to ignore everything after Times.


>>
>>



嗯,它应该是,如果时代是可用的。

Well, it should, if "Times" is available.



对不起,我的意思是,如果第一个字体不可用,那么

不会尝试任何其他字体。它似乎只适用于仅包含单个字体名称的字体

系列。


Andrew Poylos

Sorry, what I meant is that if the first font is unavailable then it
doesn''t try any of the other fonts. It seems to only work with font
families that only consist of a single font name.

Andrew Poylos

Andrew Poulos写道:
Andrew Poulos wrote:

Michael White写道:
Michael White wrote:

> Andrew Poulos写道:
>Andrew Poulos wrote:

>>如何将CSS字体系列(例如,Times,New Century
Schoolbook,serif)应用于对象?这个

obj.style.fontFamily =" Times,''New Century Schoolbook'',serif";

>>How do you apply a CSS font-family (say, Times, "New Century
Schoolbook", serif) to an object? This

obj.style.fontFamily = "Times, ''New Century Schoolbook'', serif";


似乎忽略了一切经过时代。


seems to ignore everything after Times.


>>>
>>>


嗯,它应该是,如果时代,是可用的。

Well, it should, if "Times" is available.



对不起,我的意思是,如果第一个字体不可用,那么

不会尝试任何其他字体。它似乎只适用于仅由单个字体名称组成的字体

系列。


Sorry, what I meant is that if the first font is unavailable then it
doesn''t try any of the other fonts. It seems to only work with font
families that only consist of a single font name.



Hrmm ......我看到你正在做CSS方式。你试过吗:


obj.style.fontFamily =" Times,New Century Schoolbook,serif" ;; ?

Hrmm... I see you are doing it the "CSS way." Did you try:

obj.style.fontFamily = "Times, New Century Schoolbook, serif"; ?


Andrew Poylos
Andrew Poylos



如果你忘记了如何拼写自己的名字,我认为你需要

退出电脑一段时间。 ;)


-

-Lost

删除多余的单词以通过电子邮件回复。不要给我发电子邮件。我是开玩笑的。不,我不是。

If you have forgotten how to spell your own name I think you need to
back away from the computer for a while. ;)

--
-Lost
Remove the extra words to reply by e-mail. Don''t e-mail me. I am
kidding. No I am not.


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

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