【问题标题】:Why is the Bootstrap CSS not loading? [closed]为什么没有加载 Bootstrap CSS? [关闭]
【发布时间】:2014-06-27 18:42:42
【问题描述】:
<! DOCTYPE html>
<html>

<head>
    <link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
    <link rel="stylesheet" href="main.css">
</head>

    <body>
        <div class="nav">
            <div class="container">
                <ul class="pull-left">
                    <li>ONE</li>
                    <li>TWO</li>
                </ul>

                <ul class="pull-right">
                    <li>LOG IN</li>
                    <li>HELP</li>
                </ul>
            </div> <!--End nav container-->

        </div> <!--End nav-->

    </body>
</html>

到目前为止,列表以 HTML 显示列表的默认方式显示。 main.css 的第二个链接只是一个空白文件,我没有在其中做任何事情。这些文件的结构如下:

文档/网络

我的 web 文件夹中都有。

【问题讨论】:

标签: html twitter-bootstrap


【解决方案1】:

你正在用 bnt 交换 btn,它不会渲染。

试试:

<body>
    <div class = "container">
        <form>
            <button class="btn btn-primary"> My Button </button>
        </form>
    </div>
</body>

你可以在这里看到结果:http://jsfiddle.net/YuURs/

【讨论】:

    猜你喜欢
    • 2017-02-18
    • 1970-01-01
    • 1970-01-01
    • 2017-12-12
    • 1970-01-01
    • 2013-08-06
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多