css自定义字体

HTML

<p>aaabbb</p>

CSS

/*.eot + .ttf /.otf + svg + woff = 所有浏览器的完美支持*/
@font-face {
	font-family:myFont;
	src: url("font/SkinnyCapKick.ttf"),
	url("font/SkinnyCapKick.woff"),
	url("font/SkinnyCapKick.eot");
}
p{
	font-family: myFont;
}

  

posted @ 2017-12-26 13:10  carol72  阅读(97)  评论(0编辑  收藏  举报