css3字体使用

@font-face {
font-family: 'kaiti';
src: url('../font/KaiTi.woff') format('woff'),
url('../font/KaiTi.ttf') format('truetype'),
url('../font/KaiTi.svg#GE_SS_Unique_Light') format('svg');
font-weight: normal;
font-style: normal;
}
使用:
.detail-title {
margin-bottom: 40px;
padding-bottom: 10px;
border-bottom: 2px solid rgba(186, 23, 18, 1);
font-size: 22px;
font-family: kaiti;
font-weight: bold;
color: #333333;
line-height: 30px;
}

@font-face的format属性


https://www.cnblogs.com/tkqq000/p/14852067.html
posted @ 2022-10-13 15:03  szchenrong  阅读(23)  评论(0编辑  收藏  举报