我想改变我的字体,它将是Foundry Sterling的大胆。
怎么做?请帮忙。
<!DOCTYPE html>
<html lang="en-us">
<head>
<style>
@font-face {
font-family: Foundry Sterling Bold;;
src: url('FoundrySterling-Bold.ttf');
}
p {
font-family:"Foundry Sterling Bold";
}
</style>
</head>
<body>
<p id="fsb">Bangalore</p>
<p>Bangalore</p>
</body>
</html>
答案 0 :(得分:0)
selector {
font-family: "Foundry Sterling Bold";
}
答案 1 :(得分:0)
你下载了这个字体吗?
如果是这样,试试这个:
@font-face {
font-family: myfontname;
src: url(public_html/mywebsite/fonts/myfont.woff);
}
p {
font-family: "myfontname";
}