Bootstrap表不起作用

时间:2015-07-10 14:52:46

标签: twitter-bootstrap

我有一个简单的引导程序表,我没有发布代码,因为它是一个简单的表格并且它正常工作,但现在它以列表形式显示,而不再作为表格显示。我重新链接了我对bootstrap和CSS文件的引用。我错过了什么?

1 个答案:

答案 0 :(得分:1)

由于您没有发布代码,我会。这对我来说很好。

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />

    <title></title>

    <link rel="stylesheet" type="text/css" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
</head>
<body>
    <div class="container">
        <table id="example" class="table">
            <thead>
                <tr>
                    <th>Name</th>
                    <th>Position</th>
                    <th>Office</th>
                    <th>Salary</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>Tiger Nixon</td>
                    <td>System Architect</td>
                    <td>Edinburgh</td>
                    <td>$320,800</td>
                </tr>
            </tbody>
        </table>
    </div>
</body>
</html>