引用Google font library方法:
解决问题:国外的服务器,网页要引用Google font ,lato字体
引用方法:
1、在html网页头部加入
<link href="https://fonts.googleapis.com/css?family=Lato" rel="stylesheet">
2、在css描述的地方加入对字体的描述
.desDiv{
color: #22a2a1; font-family: Lato; font-weight: 600; font-size: 20px; letter-spacing: 1px; padding-top: 39px;}3、在实现网页的地方引用:<div class="desDiv">引用Google font的地方,字体类型是lato,颜色color、大小font-size、加粗font-weight</div>注意:1、查看UI设计的界面时,UI里面的字体类型描述是lato,style是black和semibold,其实style是字体的加粗效果,通过设置font-weight调节其粗细大小,对比UI查看界面的效果进行设置。2、lato是一种字体,没有black和semibold的字体,只是字体大小的另一种描述。3、使用Google Font Api来实现引用CSS字体的设置http://www.w3cplus.com/css/how-to-use-google-font-api