FooTable:缺少切换图标?

FooTable: Toggle icon is missing?

我正在尝试使用 FooTable as standalone version. I copy/paste the code of this 示例并包括 jQuery.js、fontawesome.css 和脚踏车 js/css。

example page 页面上,您会看到在隐藏列后立即出现一个切换加号图标。但是,在我的示例副本中,没有出现切换图标。我错过了什么吗?


编辑 我只是在 Windows 7 台计算机和 Ubuntu 的不同设备上检查同一个文件。两者上都没有出现图标。


我的例子是这样的:

这是我的代码:

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>title</title>
    <link rel="stylesheet" href="style.css">
    <!-- FontAwesome-->
    <link rel="stylesheet" href="/resources/vendor/font-awesome/css/font-awesome.min.css">
    <ling rel="stylesheet" href="css/footable.standalone.css">

      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
      <script>window.jQuery || document.write('<script src="/resources/vendor/jQUery/jquery-1.11.2.min.js"><\/script>')</script>

    <script src="js/footable.min.js"></script>

  </head>
  <body>Check if fontawesome is loaded: <i class="fa fa-plus" aria-hidden="true"></i>

    <table class="table">
    <thead>
        <tr>
            <th data-breakpoints="xs">ID</th>
            <th>First Name</th>
            <th>Last Name</th>
            <th data-breakpoints="xs">Job Title</th>
            <th data-breakpoints="xs sm">Started On</th>
            <th data-breakpoints="xs sm md" data-title="DOB">Date of Birth</th>
        </tr>
    </thead>
    <tbody>
        <tr >
            <td>1</td>
            <td>Dennise</td>
            <td>Fuhrman</td>
            <td>High School History Teacher</td>
            <td>November 8th 2011</td>
            <td>July 25th 1960</td>
        </tr>
        <tr>
            <td>2</td>
            <td>Elodia</td>
            <td>Weisz</td>
            <td>Wallpaperer Helper</td>
            <td>October 15th 2010</td>
            <td>March 30th 1982</td>
        </tr>
        <tr>
            <td>3</td>
            <td>Raeann</td>
            <td>Haner</td>
            <td>Internal Medicine Nurse Practitioner</td>
            <td>November 28th 2013</td>
            <td>February 26th 1966</td>
        </tr>
        <tr>
            <td>4</td>
            <td>Junie</td>
            <td>Landa</td>
            <td>Offbearer</td>
            <td>October 31st 2010</td>
            <td>March 29th 1966</td>
        </tr>
        <tr>
            <td>5</td>
            <td>Solomon</td>
            <td>Bittinger</td>
            <td>Roller Skater</td>
            <td>December 29th 2011</td>
            <td>September 22nd 1964</td>
        </tr>
        <tr>
            <td>6</td>
            <td>Bar</td>
            <td>Lewis</td>
            <td>Clown</td>
            <td>November 12th 2012</td>
            <td>August 4th 1991</td>
        </tr>
        <tr>
            <td>7</td>
            <td>Usha</td>
            <td>Leak</td>
            <td>Ships Electronic Warfare Officer</td>
            <td>August 14th 2012</td>
            <td>November 20th 1979</td>
        </tr>
        <tr>
            <td>8</td>
            <td>Lorriane</td>
            <td>Cooke</td>
            <td>Technical Services Librarian</td>
            <td>September 21st 2010</td>
            <td>April 7th 1969</td>
        </tr>
    </tbody>
</table>

<script>
jQuery(function($){
    $('.table').footable();

});
</script>
  </body>
</html>

确保 font-awesome 字体的路径可用, 通常 font-awesome.css 尝试在

处找到字体

../fonts/*.eof|woff

因此请确保此路径可从您的网页访问,或使用 font-awesome cdn link

https://www.bootstrapcdn.com/fontawesome/

未显示图标的原因是未包含 footable.min.css。这是因为我写了

<ling rel="stylesheet" href="css/footable.standalone.css">

而不是

<link rel="stylesheet" href="css/footable.standalone.css">

字体应该在正确的路径中: ../fonts/glyphicons-halflings..*