@font-face Rule--------------------------------------------------------------------------------Sets a font to embed in the HTML document.SyntaxHTML @font-face { sFace }
Scripting N/A Possible ValuessFace String that specifies one of the following values:font-family:fontFamilyName Any of the range of values available to the fontFamily attribute.
src:url(sURL) Location of the font file, where sURL is an absolute or relative URL.
ResThe rule has no default value.Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.This feature allows you to use specific fonts that might not be available on your local system. The URL must point to an embedded OpenType file (.eot or .ote format). The file contains compressed font data that is converted to a TrueType font. For more information about the font embedding feature and pointers to a tool for creating .eot files, see Font Embedding.ExampleThe following example embeds a font in an HTML document by pointing to the font source, which is located at another site.
HTML>
<HEAD>
<STYLE>
@font-face {
font-family:comic;
src:url(http://valid_url/some_font_file.eot);
}
</STYLE>
</HEAD>
<BODY>
<P STYLE="font-family:comic;font-size:18pt">
This paragraph uses the font-face rule defined
in the above style element. The rule embeds
an OpenType file for the Comic Sans font.
</P>
</BODY>
</HTML>
Scripting N/A Possible ValuessFace String that specifies one of the following values:font-family:fontFamilyName Any of the range of values available to the fontFamily attribute.
src:url(sURL) Location of the font file, where sURL is an absolute or relative URL.
ResThe rule has no default value.Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see Dynamic Properties.This feature allows you to use specific fonts that might not be available on your local system. The URL must point to an embedded OpenType file (.eot or .ote format). The file contains compressed font data that is converted to a TrueType font. For more information about the font embedding feature and pointers to a tool for creating .eot files, see Font Embedding.ExampleThe following example embeds a font in an HTML document by pointing to the font source, which is located at another site.
HTML>
<HEAD>
<STYLE>
@font-face {
font-family:comic;
src:url(http://valid_url/some_font_file.eot);
}
</STYLE>
</HEAD>
<BODY>
<P STYLE="font-family:comic;font-size:18pt">
This paragraph uses the font-face rule defined
in the above style element. The rule embeds
an OpenType file for the Comic Sans font.
</P>
</BODY>
</HTML>
解决方案 »
- 关于JScript使用innerHTML动态输出多个嵌套双引号字符串的问题
- 我的脚本不运行是什么原因
- 获得当前页面地址中的一个值
- 谁能解决这个问题给分200,高手请进,模态窗口问题!!!!!!!!!!!!!
- firefox不支持window.location.href='http://163.com';吗? 有什么等价的方法吗?
- 求用js拿到当前点击修改按钮的 第二个td的值
- 表硌中有很多个单元格,怎样通过javascript访问其中的一个单元格。
- 这个问题相信对你们各位大侠,很简单.可是对我有点难度.
- easyui中用克隆方式生成动态combobox,新增的combobox渲染有问题
- 深入了解this指向问题
- 请各位大虾帮忙,帮我看看这段代码有什么问题,顺便修改一下,谢谢!改好立即给分
- 转义的问题
到“自我设计”,选1号模板
可以在客户端动态潜入你需要用户显示的字体,不过最好是英文,
不过我想即使可能,字体也必须是英文,因为中文字体文件太大了。你可以到msdn网站library搜索以上关键字,
我记得有实例讲解,而且不是很麻烦。