关闭画布导航基础挂钩问题

时间:2014-01-26 15:10:19

标签: javascript navigation zurb-foundation

我无法连接基础5的画布导航。它没有显示列表,并且当画布导航处于活动状态时,标签栏会向下跳几个边距。

这是我的html标记:

<div class="marketing off-canvas-wrap">
<div class="inner-wrap">
<!--

-->
<div class="fixed">
    <nav class="top-bar docs-bar hide-for-small" data-topbar>
        <ul class="title-area">
            <li class="name">
        <h1><a href="index.html">website</a></h1>
            </li>
    </ul>

        <section class="top-bar-section">
            <ul class="right">
                <li><a href="#">home</a></li>
                <li><a href="#">One</a></li>
                <li><a href="#">Two</a></li>
                <li><a href="#">Contact</a></li>
        </ul>
    </section>
    </nav>
<!--
-->
<nav class="tab-bar show-for-small">
    <a class="left-off-canvas-toggle menu-icon">
<aside class="left-off-canvas-menu">
<ul class="title-area">
            <li class="name">
        <h1><a href="index.html">website</a></h1>
<ul class="off-canvas-list">
<li><a href="#">home</a></li>
<li><a href="#">One</a></li>
<li><a href="#">Two</a></li>
<li><a href="#">Contact</a></li>

</ul>
</aside>
<a class="exit-off-canvas" href="#"></a>
</nav>
</div>
<!--
-->

CSS:

.top-bar{
padding-top:20px;
padding-right:20px; 
padding-left:20px;
}



.top-bar-section ul,
.top-bar-section ul li,
.top-bar-section ul li.active > a,
.top-bar-section li a:not(.button),
.top-bar-section li a:not(.button):hover,
.top-bar-section ul li.active > a:hover {
font-family: 'Playfair Display SC', serif;
background: white;
color: black;  
}

.tab-bar,
.tab-bar ul, li{
padding: 0,0;
margin: 0,0;
background:white;
color: black;
}

0 个答案:

没有答案