css引用字体,不同浏览器字体大小不同
<!DOCTYPE><html><head><metahttp-equiv="Content-Type"content="text/html;charset=utf-8"...
<!DOCTYPE>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<title>@font-face Demo</title>
<style type="text/css">
@font-face{
font-family:'ShonarBanglaRegular';
src:url("shonar_bangla.eot");
src:url("shonar_bangla.eot?#iefix") format("embedded-opentype"),
url("shonar_bangla.woff") format("woff"),
url("shonar_bangla.ttf") format("truetype"),
url("shonar_bangla.svg#ShonarBanglaRegular") format("svg");
}
#demo
{
font-family:'ShonarBanglaRegular';
width:800px;
margin:10px auto;
text-align:left;
border:1px solid #666;
padding:10px;
}
</style>
</head>
<body>
<div id="demo" style="font-size:24px">
BRAND
COLLECTION
SHOW
NEWS
STORE
VIP
COOPERATION
</div>
</body>
</html> 展开
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" >
<title>@font-face Demo</title>
<style type="text/css">
@font-face{
font-family:'ShonarBanglaRegular';
src:url("shonar_bangla.eot");
src:url("shonar_bangla.eot?#iefix") format("embedded-opentype"),
url("shonar_bangla.woff") format("woff"),
url("shonar_bangla.ttf") format("truetype"),
url("shonar_bangla.svg#ShonarBanglaRegular") format("svg");
}
#demo
{
font-family:'ShonarBanglaRegular';
width:800px;
margin:10px auto;
text-align:left;
border:1px solid #666;
padding:10px;
}
</style>
</head>
<body>
<div id="demo" style="font-size:24px">
BRAND
COLLECTION
SHOW
NEWS
STORE
VIP
COOPERATION
</div>
</body>
</html> 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询