1
所以我從Fontsquirrel下載了一種字體,它具有愛沙尼亞語使用的所有字母。當我使用所有常用字母時,它在瀏覽器中工作正常,但只要我使用字母「ž」,它就不會顯示正確的字體。特殊字符沒有以正確的字體顯示
這是我的HTML的外觀:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>8 Delfiini | Massaažiga argipäevast kõrgemale</title>
<!-- Bootstrap -->
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container"> <!--page wrapper-->
<section id="avaleht">
<h1>Massaažiga argipäevast kõrgemale</h1>
</section>
...
而CSS:
h1 {
font-family: 'alluraregular';
font-size: 6em;
text-align: center;
}
我改變了 「郎= EN」 到 「郎=等」,但沒有奏效。
這是結果:
有沒有一種方法,使這項工作正常?謝謝!
你能指點我的字體嗎?字符可能存儲在字體文件的不同位置。 – Sam
我希望我理解正確。 :) Fontface看起來像這樣: – bijoume
@ font-face { font-family:'alluraregular'; src:url('../ fonts/allura-regular-webfont.eot'); \t url('../ fonts/allura-regular-webfont.eot?#iefix')format('embedded-opentype'), url('../ fonts/allura-regular-webfont.woff' )格式('woff'), url('../ fonts/allura-regular-webfont.ttf')格式('truetype'), url('../ fonts/allura-regular-webfont.svg# alluraregular')格式('svg'); font-weight:normal; font-style:normal; } Fontsquirel的鏈接在這裏:http://bit.ly/1k4ZMCg – bijoume