1、@keyframe
@keyframes animationname {keyframes-selector {css-styles;}}
- animationname 必需的。定义animation的名称。
- keyframes-selector 必需的。动画持续时间的百分比。
0-100%
from (和0%相同)
to (和100%相同) - css-styles 必需的。一个或多个合法的CSS样式属性
2、@font-face
@font-face
{
font-family: myFirstFont;//定义字体名
src: url('Sansation_Light.ttf')//字体位置
,url('Sansation_Light.eot'); /* IE9 */