css3之@font-face---再也不用被迫使用web安全字体了
1,@font-face 的出现
在没有css3之前,我们给网页设计字体只能设置web安全字体,使得我们的网页表现看上去好像都是那个样子,那么如果我们想给字体设置web设计者提供的字体呢?没有问题,css中的@font-face 就可以帮助你解决这个问题。原理是通过将字体文件存储到服务器,再需要时被自动下载到用户的计算机中,缺点:这种字体好像是收费的,可能会影响加载速度,不过在当今的网速下,为了美加载速度可以忽略不计
2,@font-face 的使用
@font-face 这个属性怎么使用呢?也就是它的语法是什么?看下图
aaarticlea/png;base64,iVBORw0KGgoAAAANSUhEUgAAAtUAAAH/CAIAAAAXDrbxAAAgAElEQVR4nO3dwZGzPLP2cZKi6lm+WZwtSZwUyOAkQTDsnjgcwLv4voXHILXULYHxTNP+/+quuzwYhIw17msAw7AAAAC85/8d8Xg8hn9xB8uy/HUX4AtDAoAf5I+wKDYQGBIA/CB/hEWxgcCQAOAH+SMsig0EhgQAP8gfYVFsIDAkAPhB/giLYgOBIQHAD/JHWBQbCAwJAH5cmT+GYfjf//3f54NhGLaJ2+Pyx22KPVu5FJqMYjMMw//8z/9sj9m2X8IeElf98gJAj+vzx6BIZ6v+WH7wPf3f//2f0Ro0zfzRfKcQTDN/XPLLCwA9fnv/R3WpofZH1fPBFj56mkJKKzZ2RUFgb+7/qC7F4AFwzjX548Qf0Pzx/WnN/MH2/zbVIcEvL4A/8avHX6ofVcYnV/+cKNnF5l827/d55/jL0V9eALB9Kn/8qx8bTn80/ngahuE///mPmMKHXT/2f0DozB//vv3LCwBNF+eP8g+mf/WPMKP4PX/8z3/+U62RfN716Mwf5XREZeePq355AaDHxed/9J9Cb3zSDa/TTtn/8Q72f0CwD8ld8ssLAJ3++PhL+WM6fdv/Yc+JKvZ/QLj2+Ev5IwD0854/jHZgY/8HBPIHAD9++/pj/aVu4PjLe9j/AeHN64+RUwFc6LL88fxUSv+EEk/9m1c4+5Pu3zx/8MF3gp0/DL/cT/wae0hc+MsLAE3cfy4sbjYGgSEBwA/yR1gUGwgMCQB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/8CUD7pA/wiJ/QDAuyZ8VY+PqnA3aN+e11eqXJM4uspX7uSToGxPLlwzg15E/wiJ/QNDzx+uqPPslsM7kD+1qgdUZy5BSX9y+lPi5ieVLBvDryB9hkT8g9A6JrvxR3tBPuadB71r6bomg9udY/gDw58gfYZE/IHw2f5i3OGivpfMeUkbj5A/gVsgfYZE/IHw+f6RTWudWqHeazBeXJ3BcMVHHVaSAX0P+CIv8AeGC/FG7P0jHzSZrxd/f/o8hueBp1wIA3kD+CIv8AaF7SOh3h8/miXb+B/kD+E3kj7DIHxD6h4R6d/hslsqkvu+/bK3+2fdfNBx/AX4N+SMs8geEQ0Oidb/FSv7ovv6Hdst47fofnH8KBET+CIv8AYEhAcAP8kdYFBsIDAkAfpA/wqLYQGBIAPCD/BEWxQYCQwKAH+SPsCg2EBgSAPwgf4RFsYHAkADgB/kjLIoNBIYEAD/IH2FRbCAwJAD4Qf4Ii2IDgSEBwI8z+WMBAAB4z+H8cWgBAACANz0ej/8PtuIyKQ1aoJcAAAAASUVORK5CYII=" alt="" />
从上面的语法中,可以看出@font-face最少需要两个参数,一个是你给你所添加字体的名字,比如方正黑体,一个是服务器字体的url,下面的一些设置大多可以不用,因为可以用其他css属性就搞定了,效果比这个也好。
@font-face{
font-family: abc; /* 定义字体名字 */
src: url('abc.TTF');
}
html {font-family: abc}; // 将你的文档设置为你注册的字体
这样你就达到了使用你想用的字体
3,兼容性呢?(浏览器支持)
Firefox、Chrome、Safari 以及 Opera 支持 .ttf (True Type Fonts) 和 .otf (OpenType Fonts) 类型的字体。
Internet Explorer 9+ 支持新的 @font-face 规则,但是仅支持 .eot 类型的字体 (Embedded OpenType)。
IE8 及更早版本不支持 @font-face 属性
对于兼容性,在测试中,实在不能分辨用那种类型的字体,但是在标准浏览器中,我使用的ttf类型字体,可以显示出它的样式,在ie9 +下面效果不是很好,有点乱,以后再接着总结,但是发现了一个可以生成字体的网站,在下面的推荐网站中会有,这里就不显示了
参考文章:
css3之@font-face---再也不用被迫使用web安全字体了的更多相关文章
- 10款CSS3按钮 - 程序员再也不用为按钮设计而发愁了...
这次主要给大家分享10款风格各异的CSS3按钮,如果你希望你的页面也能有很炫的样式,那么我相信这10款CSS3按钮就非常适合你,而且每一款都整理了源代码供参考,一起来看看吧. 1.绚丽的CSS3发光按 ...
- CSS Sprites+CSS3 Icon Font
CSS Sprites+CSS3 Icon Font CSS Sprites在国内很多人叫CSS精灵,是一种网页图片应用处理方式.它允许你将一个页面涉及到的所有零星图片都包含到一张大图中去,这样一来, ...
- 妈妈再也不用担心别人问我是否真正用过redis了
1. Memcache与Redis的区别 1.1. 存储方式不同 1.2. 数据支持类型 1.3. 使用底层模型不同 2. Redis支持的数据类型 3. Redis的回收策略 4. Redis小命令 ...
- 有了这个,再也不用每次连新机器都要设置secure crt属性了
我连服务器用的是secure crt,每次ssh新服务器的时候都得手动设置字符编码和背景颜色,今天问了旁边的开发原来可以全局设置,以后连服务器的时候就再也不用手动设置相关属性了.步骤如下: 一开始点击 ...
- 锋利的js之妈妈再也不用担心我找错钱了
用js实现收银功能. <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <hea ...
- 【阿里云产品公测】离线归档OAS,再也不用担心备份空间了
[阿里云产品公测]离线归档OAS,再也不用担心备份空间了 作者:阿里云用户莫须有3i 1 起步 1.1 初识OAS 啥是OAS,请看官方说明: 引用: 开放归档服务(Open Archive Se ...
- 学会这个删库再也不用跑路了~ --技术流ken
前言 相信每一个学IT的人或多或少都听说过从删库到跑路这个梗~下图也是在各种交流群屡禁不止,新人听着也是瑟瑟发抖. 人们茶余饭后,街头巷角难免要问... 下面技术流ken就教给各位新手们一招删库再也不 ...
- CSS3 icon font
大家都知道现在各个浏览器都支持CSS3的自定义字体(@font-face),包括IE6都支持,只是各自对字体文件格式的支持不太一样.那么对于网站中用到的各种icon,我们就可以尝试使用font来实现, ...
- 有了 tldr,妈妈再也不用担心我记不住命令了
引言 有一次我在培训时说「程序员要善于使用 Terminal 以提高开发效率」,一位程序员反驳道:「这是 21 世纪,我们为什么要用落后的命令行,而不是先进的 GUI?」 是的,在一些人眼里,这个黑黑 ...
随机推荐
- leetcode面试准备:Lowest Common Ancestor of a Binary Search Tree & Binary Tree
leetcode面试准备:Lowest Common Ancestor of a Binary Search Tree & Binary Tree 1 题目 Binary Search Tre ...
- VS(Microsoft Visual Studio2010)工具打开项目所需的应用程序,出现未安装(.csproj)的应用程序的解决办法
打开这个文件的话,从列表中选择打开方式的时候,看看选择打开项目文件的打开方式是不是visual studio,如果是Micrisoft visual studio version selector.那 ...
- bzoj2125 3047
仙人掌上的最短路,这里有详细的题解http://pan.baidu.com/s/1wzCpC我觉得讲的很清楚,不懂的见代码注释吧 type node=record po,next,num:longin ...
- BZOJ2661: [BeiJing wc2012]连连看
2661: [BeiJing wc2012]连连看 Time Limit: 10 Sec Memory Limit: 128 MBSubmit: 483 Solved: 200[Submit][S ...
- 再也不用担心ie下console.log报错了。。。
习惯了在ff或者chrome下暴力调试的你会不会忘记注释掉而在ie下报错呢,那么可以加这个代码: if (typeof console == "undefined") { this ...
- C# config配置文件 自定义节点读取
主要使用:ConfigurationSection IConfigurationSectionHandler已被否决 http://technet.microsoft.com/zh-cn/librar ...
- Hadoop 中 Eclipse 的配置
先启动Hadoop守护进程,进入hadoop安装目录,执行bin/start-all.sh 主要是为了之后能正确测试 Ubuntu中下载安装Eclipse,执行sudo apt-get install ...
- 《A First Course in Probability》-chaper5-连续型随机变量-随机变量函数的分布
在讨论连续型随机变量函数的分布时,我们从一般的情况中(讨论正态分布的文章中提及),能够得到简化版模型. 回忆利用分布函数和概率密度的关系求解随机变量函数分布的过程,有Y=g(x),如果g(x)是严格单 ...
- 4 weekend110的YARN的通用性意义 + yarn的job提交流程
Mr程序写完之后,提交给yarn,yarn会产生一个MRAppMaster,想说的是,yarn变得很 通用,yarn集群上,不光可以跑mr程序,还可以跑各种运算模型. 海量批处理,mapreduce ...
- 【转】linux下安装opencv
Installation in Linux These steps have been tested for Ubuntu 10.04 but should work with other distr ...