为什么我的引导程序不起作用?

为什么我的引导程序不起作用?

问题描述:

请帮帮我!为什么引导程序不加载类?

Please help me! Why is bootstrap not loading the classes?

这是我的代码,它只是一个表格和一个简单的按钮,但没有应用任何类

Here's my code which is just a table and a simple button, yet no classes are applied

<!DOCTYPE html>
<html>
<head>
    <title>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.js"></script>
        <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
        <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
        <script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
    </title>
</head>
<body>

<table class="table" id="table">
    <thead>
        <tr>
            <th>Order ID</th>
            <th>TX ID CxPay</th>
            <th>TX ID IY</th>
            <th>Amount</th>
            <th>Class</th>
            <th>Date</th>
        </tr>
    </thead>
    <tbody>

        <tr>
            <td>1asas</td>
            <td>1asas</td>
            <td>1asas</td>
            <td>1asas</td>
            <td>1asas</td>
            <td>1asas</td>
        </tr>
    </tbody>
</table>
<button class="btn btn-success">asasa</button>
<script>
    $(document).ready(function() {
    $('#table').DataTable();
} );
</script>
</body>
</html>

引导程序和数据表都不起作用.我在这里缺少什么?任何帮助表示赞赏!

Neither bootstrap nor datatables is working. What am I missing here? Any help is appreciated!

您在 中导入了不正确的脚本.在 中,只允许使用描述页面标题的文本.将 放在

You are importing the script inside <title> that's not correct. In <title> only text is allowed describing your page's title. Place your <script> and <link> above the </head>