【问题标题】:PHP template and bootstrap font awesomePHP 模板和引导字体很棒
【发布时间】:2015-10-15 12:25:17
【问题描述】:

我一直在 php 模板 (.dwt.php) 上工作,在标题中我放了 fontawsome css 但是字体真棒不管我做什么我都不管用,我尝试更改字体路径,它在这里不起作用 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;
}

我在名为 fonts 的文件夹中拥有所有这些字体,而 css 文件夹中的 fontawsome.css 有谁能帮忙吗?

【问题讨论】:

    标签: php css twitter-bootstrap dreamweaver font-awesome


    【解决方案1】:

    你不需要像那样加载 FontAwesome;你可以只使用样式表。不需要使用字体:

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

    【讨论】:

    • 将样式表添加到 后,您可以使用 对其进行测试。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-07-14
    • 2021-07-25
    • 2018-02-13
    • 1970-01-01
    • 2020-05-28
    • 1970-01-01
    • 2020-08-02
    相关资源
    最近更新 更多