Font Awesome 图标没有出现在我的 csHtml 中
Font Awesome Icons are not appearing in my csHtml
@{
ViewData["Title"] = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<br /><br />
<h1>Help & Documentation</h1>
<ul>
<li><i class="fas fa-file-pdf"></i><a href="~/pdf/HowToSaveFilesiOS.pdf">How To Save Your Completed Enrollment Form on iPhone or iPad</a></li>
<li><i class="fas fa-file-pdf"></i><a href="~/pdf/HowToCheckEmail.pdf">How To Check Your Email.</a></li>
</ul>
我没有看到任何图标。
在我的Layout.cshtml
我在 header
中有一个 link
<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
Font Awesome Version 5好像有这个图标,你可以在header中用5的CDN替换。
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/v4-shims.css">
下面是我的测试结果:
@{
ViewData["Title"] = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<br /><br />
<h1>Help & Documentation</h1>
<ul>
<li><i class="fas fa-file-pdf"></i><a href="~/pdf/HowToSaveFilesiOS.pdf">How To Save Your Completed Enrollment Form on iPhone or iPad</a></li>
<li><i class="fas fa-file-pdf"></i><a href="~/pdf/HowToCheckEmail.pdf">How To Check Your Email.</a></li>
</ul>
我没有看到任何图标。
在我的Layout.cshtml
我在 header
中有一个 link<link href="http://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
Font Awesome Version 5好像有这个图标,你可以在header中用5的CDN替换。
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/v4-shims.css">
下面是我的测试结果: