English 中文(简体)
在“@font-face CSS”规则中,我们是否可以为当地定义单独发表《北极圈宣言》?
原标题:In @font-face CSS rule, can we have a separate src declaration for local definition?

The following s a example @font-face CSS rule:

@font-face {
  font-family:  DroidSerifBoldItalic ;
  font-weight: normal;
  font-style: normal;
  src: url( DroidSerif-BoldItalic-webfont.eot );
  src: url( DroidSerif-BoldItalic-webfont.eot?#iefix ) format( embedded-opentype ),
       local( Droid Serif Bold Italic ), local( DroidSerif-BoldItalic ),
       url( DroidSerif-BoldItalic-webfont.woff ) format( woff ),
       url( DroidSerif-BoldItalic-webfont.ttf ) format( truetype );
}

您认为,以下“过去”的《社会保障法》规则较好? (正如你可以看到的那样,在这种情况下,浏览器甚至电算器,如果电线在用户计算机上可以查到,然后下载)

@font-face {
  font-family:  DroidSerifBoldItalic ;
  font-weight: normal;
  font-style: normal;
  src: local( Droid Serif Bold Italic ), local( DroidSerif-BoldItalic );
  src: url( DroidSerif-BoldItalic-webfont.eot );
  src: url( DroidSerif-BoldItalic-webfont.eot?#iefix ) format( embedded-opentype ),
       url( DroidSerif-BoldItalic-webfont.woff ) format( woff ),
       url( DroidSerif-BoldItalic-webfont.ttf ) format( truetype );
}

Are there any gotchas here? If not, why isn t everyone using the latter?

最佳回答

From what i know about @font-face, the main fear behind using local is that the font will not be named the same on someone s desktop. You re ceding control there, and if you re wrong it ll fail. You do pose an interesting question though, and i m not saying you re wrong. You can read more about that here and here.


<>ADDUM

Normally, it’s used as a mask to prevent unwanted http requests in IE.

命令事项是因为国际电子企业(至少直到国际电子8)不支持<条码> 当地的描述,以及将<条码> 当地的描述权置于电子卫星自动格式之后,因特网探索者老版本无法下载其他自动格式(在<条码><>>src上) ,因为它们是靠背书的,并且是用的。


The @BoltClock comment is real. 因此,我们使用两个<代码>地方定义——<代码> 当地(>) Droid Serif Bold Italic , local (DroidSerif-BoldItalic ),。 第一种是字体的正常名称(所有浏览器都承认该名称,但Safari除外),后者是Safari(至少在Mac /OS X系统中)要求的字体的密码。

为了避免像两个不同的方面(大多数是两个不同的专业单位)一样有相同的名称,有些只是使用<代码> 当地(☺)

问题回答

暂无回答




相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

jquery ui dialog opens only once

I have a button that opens a dialog when clicked. The dialog displays a div that was hidden After I close the dialog by clicking the X icon, the dialog can t be opened again.

Drop down background url in Safari Issue

selectBox.selectCSS { background: url(/Images/replacementSelectBackground.png) top left no-repeat height:auto; } I have an issue in Safari only where the image is not rendering on top ...

CSS specific for Safari

How do you target specifically safari in css with styles?

Aligning textarea in a form

Ive used the following css code to align my form elements: form { position:relative; } form input { position:absolute; left:11em; } However, the textarea element is not aligned correctly with the ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

CSS problem with page footer

I have defined my page footer in the css file as: #footer { position: absolute; height: 50px; text-align: center; background: #66CCCC; bottom: 0px; left: 0px; width: 100%; height: ...

热门标签