[英]@Font-Face not working in codeigniter
我只是感到困惑,為什么我的CSS代碼無法正常工作。 我為此項目使用codeigniter。
我有一個名為“ Viner Hand ITC”的字體,我將所有格式都放在了一個名為“ font”的子文件夾的根目錄中,但無法正常工作。
只是檢查一下。
@font-face {
font-family: "Viner Hand ITC";
src: url('font/435028077-27990.eot');
src: url('font/435028077-27990.eot?#iefix') format('embedded-opentype'),
url('font/435028077-27990.svg#Viner Hand ITC') format('svg'),
url('font/435028077-27990.woff') format('woff'),
url('font/435028077-27990.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
body {
background : #000!important;
color: #fff;
text-align: justify;
font-family: "Viner Hand ITC"!important;
direction: ltr;
}
但是當我打開頁面時,它總是使用默認字體。
許多瀏覽器不支持帶有src屬性的font-family。 檢查您的瀏覽器。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.