一,@font-face
@font-face{
font-family:字体名字;
src : 字体文件在服务器上的相对或绝对路径;
}
@font-face{
font-family: "MOOC Font";
src: url("http://www.imooc.com/Amaranth-BoldItalic.otf");
}
.demo {
width: 340px;
padding: 30px;
color: #566F89;
background: #000;
font-size:58px;
font-family: "MOOC Font";
}
<div class="demo">IMOOC</div>
二,text-shadow
text-shadow: X-Offset Y-Offset blur color;