字体真棒;不工作

时间:2015-03-01 21:34:52

标签: html css font-awesome-4

这应该很简单。我只是想显示字体 - 真棒删除字体,以及字体真棒fa-camera-retro字体。我究竟做错了什么。我确定我正在使用正确的班级;我检查了网站,只是简单地下载了CDN。

将此文件复制到您的硬盘并将其命名为Index.html; 通过任何浏览器检查;不起作用。不知何故,它适用于小提琴! WTF?

<!DOCTYPE html>
<html lang="en">
    <head>
        <title> Test </title>
        <meta charset="utf-8">      
        <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
        <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
        <script> </script>

    </head>
<body>
WHY DOESNT THIS WORK = Remove It - <i class="fa fa-remove"></i>
    <div class="container">
        <div class="row">
            <div class="col-md-6">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th> Heading 1 </th>
                            <th> Heading 2 </th>
                            <th> Remove </th>
                            <th> Icon 2 </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td> Element 1 </td>
                            <td> Element 2 </td>
                            <td>WHY DOESNT THIS WORK = <i class="fa fa-camera-retro"></i></td>
                            <td><i class="fa fa-times"></i></td>
                        </tr>

                    </tbody>
                </table>
            </div>
        </div>
        </body>
    </html>

1 个答案:

答案 0 :(得分:2)

添加 https:(第6行)

        <!DOCTYPE html>
<html lang="en">
    <head>
        <title> Test </title>
        <meta charset="utf-8">      
        <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" rel="stylesheet">
        <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
        <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
        <script> </script>

    </head>
<body>
WHY DOESNT THIS WORK = Remove It - <i class="fa fa-remove"></i>
    <div class="container">
        <div class="row">
            <div class="col-md-6">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th> Heading 1 </th>
                            <th> Heading 2 </th>
                            <th> Remove </th>
                            <th> Icon 2 </th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td> Element 1 </td>
                            <td> Element 2 </td>
                            <td>WHY DOESNT THIS WORK = <i class="fa fa-camera-retro"></i></td>
                            <td><i class="fa fa-times"></i></td>
                        </tr>

                    </tbody>
                </table>
            </div>
        </div>
        </body>
    </html>