2015-10-15 43 views
-1

我一直在PHP模板(.dwt.php)上工作,並在頭文件中我把fontawsome css ,但字體真棒不工作,無論我做什麼,我嘗試更改字體路徑和它不工作在這裏代碼的PHP模板PHP模板和引導程序字體真棒

<?php 
require "header.php"; 
if(!$_SESSION['UserAssoc']['Administrator']) Redirect("home.php", "Insufficient Privileges"); 
?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head> 
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
<!-- TemplateBeginEditable name="doctitle" --> 
<title>NOMS</title> 
<!-- TemplateEndEditable --><!-- TemplateBeginEditable name="head" --><!-- TemplateEndEditable --> 
<link href="css/bootstrap.css" rel="stylesheet" media="screen" /> 
<link href="css/thin-admin.css" rel="stylesheet" media="screen" /> 
<link href="css/font-awesome.css" rel="stylesheet" media="screen" /> 
<link href="css/style.css" rel="stylesheet" /> 
<link href="css/dashboard.css" rel="stylesheet" /> 
<script src="Scripts/jquery.js"></script> 
<script src="Scripts/bootstrap.min.js"></script> 
<script type="text/javascript" src="Scripts/smooth-sliding-menu.js"></script> 
</head> 

,在這裏我fontawsome.css文件

@font-face { 
    font-family: 'FontAwesome'; 
    src: url('../font/fontawesome-webfont.eot?v=3.2.1'); 
    src: url('../font/fontawesome-webfont.eot?#iefix&v=3.2.1') format('embedded-opentype'), 
    url('../font/fontawesome-webfont.woff?v=3.2.1') format('woff'), 
    url('../font/fontawesome-webfont.ttf?v=3.2.1') format('truetype'), 
    url('../font/fontawesome-webfont.svg#fontawesomeregular?v=3.2.1') format('svg'); 
    font-weight: normal; 
    font-style: normal; 
} 

和我都這樣的字體文件夾,名爲字體和在CSS文件夾中的fontawsome.css任何人都可以請幫助?

+0

字體或字體? –

回答

0

你不需要像這樣加載FontAwesome;你可以使用樣式表。不需要使用字體:

<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css"> 
+0

將樣式表添加到後,您可以使用對其進行測試。 – plushyObject

+0

是是是是是工作非常感謝 –

+0

沒問題好運 – plushyObject