基金会不起作用

时间:2016-05-08 09:18:12

标签: css zurb-foundation responsive

我正在学习如何用Foundation&amp ;;制作画布菜单。我做了这个例子,但它根本不起作用!

以下是代码:

    <!DOCTYPE html>
<!--[if IE 9]>
<html class="lt-ie10" lang="en">
<![endif]-->
<html class="no-js" lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>thenewboston</title>
    <link rel="stylesheet" href="css/normalize.css">
    <link rel="stylesheet" href="css/foundation.css">
    <link rel="stylesheet" href="main.css">
    <script src="js/vendor/modernizr.js"></script>
</head>
<body>

    <div class="off-canvas-wrap" data-offcanvas>
        <div class="inner-wrap">

            <!-- Toggle button -->
            <a class="left-off-canvas-toggle" href="#">Toggle Menu</a>

            <!-- Offcanvas menu -->
            <aside class="left-off-canvas-menu">
                <ul class="no-bullet">
                    <li><a href="#">Home</a></li>
                    <li><a href="#">Profile</a></li>
                    <li><a href="#">Logout</a></li>
                </ul>
            </aside>

            <!-- Main content -->
            <div class="row">
                <div class="medium-6 columns bg-2">Hey now dude</div>
                <div class="medium-6 columns bg-3">This is some sample content</div>
            </div>

            <!-- Exit overlay -->
            <a class="exit-off-canvas"></a>

        </div>
    </div>

<script src="js/vendor/jquery.js"></script>
<script src="js/foundation.min.js"></script>
<script>
    $(document).foundation();
</script>
</body>
</html>

一切看起来都很完美,我的css&amp; js个文件夹正确放置在同一目录中。我还用另一个简单的例子来测试基础是否有效,它运行良好。我真的不知道为什么它不起作用。如果您知道如何解决,请告诉我..谢谢!

0 个答案:

没有答案