2015-06-21 104 views
0

不顯示我試圖從FontAwesome這個代碼的每一個變化並不能得到的圖標顯示:FontAwesome圖標的VisualStudio

http://prntscr.com/7jmy3y

我使用Visual Studio 2013的Web。

@model HelloWorld.Models.Post 
@{ 
    ViewBag.Title = "Delete"; 
} 

<link rel="stylesheet" href="../../../Content/post.css"> 
<link rel="stylesheet" href="../../../Content/font-awesome.css"> 
<script src="../../../Content/js/jquery.js"></script> 

<div class="create-post-form"> 
    <div class="form-group"> 
     <article class="post"> 
      <h4>@Html.DisplayFor(model => model.Title)</h4> 
      <p>@Html.DisplayFor(model => model.Description)</p> 
      <ul class="post-footer"> 
      <li><span id="comments"><i class="fa fa-comment"></i> 20</span></li> 
      <li><span id="likes"><i class="fa fa-heart"></i> 5</span></li> 
      </ul> 
     </article> 
</div> 
</div> 

回答

0

我覺得問題在於字體。以this answer爲例。我做了什麼?此問題可以通過在遠程服務器上使用css文件來解決:

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