<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
/*font-family:文本字体名称
font-style:文本样式
font-variant:文本是否为小型大写字母大小写
font-weight:设置文本的粗细
font-stretch:文本是否横向的拉伸变形
font-size:文本字号大小写
src:自定义字体的相对路径或绝对路径,此属性只能在@font-face中使用*/
p[lang="a"]{
font-family: "arial narrow";
font-weight: bold;
font-size: 100px;
}
/*@font-face {
font-family:myfont;
src: url();
}
p[lang="b"]{
font-family: myfont;
font-weight: bold;
font-size: 100px;
}*/
</style>
<body>
<p lang="a">@font-face</p>
<p lang="b">@font-face</p>
</body>
</html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
</head>
<style type="text/css">
/*font-family:文本字体名称
font-style:文本样式
font-variant:文本是否为小型大写字母大小写
font-weight:设置文本的粗细
font-stretch:文本是否横向的拉伸变形
font-size:文本字号大小写
src:自定义字体的相对路径或绝对路径,此属性只能在@font-face中使用*/
p[lang="a"]{
font-family: "arial narrow";
font-weight: bold;
font-size: 100px;
}
/*@font-face {
font-family:myfont;
src: url();
}
p[lang="b"]{
font-family: myfont;
font-weight: bold;
font-size: 100px;
}*/
</style>
<body>
<p lang="a">@font-face</p>
<p lang="b">@font-face</p>
</body>
</html>