字體改不了 大神幫忙看看
@font-face{
font-family:"HAPPY EASTER";
scr:url('fonts/HAPPY EASTER');
font-weight:normal;
font-style:normal;
}
[data-icon]:after{
content:attr(data-icon);
width:200px;
height:200px;
color:white;
font-size:90px;
text-align:center;
line-height:200px;
position:absolute;
top:50%;
left:50%;
margin:-100px 0 0 -100px;
-webkit-transform:rotate(-45deg) translateY(25%);
-moz-transform:rotate(-45deg) translateY(25%);
-ms-transform:rotate(-45deg) translateY(25%);
-o-transform:rotate(-45deg) translateY(25%);
transform:rotate(-45deg) translateY(25%);
font-family:"HAPPY EASTER";
}
2018-03-14
@font-face {
font-family:'禹衛(wèi)書法行書簡(jiǎn)體';
src: url(font/禹衛(wèi)書法行書簡(jiǎn)體(優(yōu)化版).ttf);
}
一:把font-weight:normal;font-style:normal;去掉
二:你不覺(jué)得你的路徑格式錯(cuò)了嗎?字體的后綴應(yīng)該加上的,就上我上面寫的那樣
2018-03-13
scr:url('fonts/HAPPY EASTER')后面的.eot') format('eot'),.svg') format('svg')……,呢?
2018-03-13
路徑?jīng)]問(wèn)題吧??