Foundation 6의 TopBar가 작동하지 않음 (TopBar in foundation 6 not working)


문제 설명

Foundation 6의 TopBar가 작동하지 않음 (TopBar in foundation 6 not working)

파운데이션 6의 내 탑바가 어떻게든 작동하지 않습니다(어쨌든, Foundation.topbar.js가 존재하지 않습니다). 그러니 추가할 수 있도록 도와주세요.

저는 기초에 익숙하지 않습니다. 저는 13입니다. 그러니 고려해주세요. :)

그리고 다음은 전체 코드입니다.

<!doctype html>
<html class="no‑js" lang="en">
  <head>
    <meta charset="utf‑8" />
    <meta http‑equiv="x‑ua‑compatible" content="ie=edge">
    <meta name="viewport" content="width=device‑width, initial‑scale=1.0" />
    <title>Foundation | Welcome</title>
    <link rel="stylesheet" href="css/foundation.css" />
    <link rel="stylesheet" href="css/app.css" />
  </head>
  <body>
    <nav class="top‑bar">
      <ul class="title‑area">
        <li class="name">
          <h1><i>Title</i></h1>
        </li>
      </ul>
    </nav>
    <div class="row">
      <div class="large‑12 columns">
        <div class="callout">
          <h1>HEADER</h1>
        </div>
      </div>
    </div>
    <script type="text/javascript" src="<? bloginfo('template_url'); ?>/css/foundation‑5.2.2/js/foundation/foundation.topbar.js"></script>
    <script src="js/vendor/jquery.min.js"></script>
    <script src="js/vendor/what‑input.min.js"></script>
    <script src="js/foundation.min.js"></script>
    <script src="js/app.js"></script>

  </body>
</html>

이렇게 하면 됩니다.

이런 일이...

내 JS 폴더입니다:

이것은 내 js 폴더입니다


참조 솔루션

방법 1:

just you're coding in Foundation 5.x style. Look at this : http://foundation.zurb.com/sites/docs/top‑bar.html

방법 2:

thank you. and also download and import the .js folder from the foundation on git. the the topbar will "work".

방법 3:

It looks like you're just running this as a static page (html)

Yet in the path for your javascript includes you're including

<? bloginfo('template_url'); ?>

Which looks to be a php function

Might I suggest you run the likes of WAMPserver ( given you're running windows it's a simple way of getting Apache Mysql and PHP up and running on your local machine.

Additional note: As was said however it looks like you're including foundation 5.x code

"<? bloginfo('template_url'); ?>/css/foundation‑5.2.2/js/foundation/foundation.topbar.js"

(by panda_programmerServucpanda_programmerForbairt)

참조 문서

  1. TopBar in foundation 6 not working (CC BY‑SA 2.5/3.0/4.0)

#zurb-foundation #zurb-foundation-6






관련 질문

zurb-foundation Rails gem에 캔버스 외 레이아웃 포함 (Including off-canvas layouts with the zurb-foundation Rails gem)

CSS zurb 기초 및 dhtmlx (CSS zurb foundation and dhtmlx)

기초 바닥글이 전체 페이지 너비가 아닙니다. (Foundation footer is not full page width)

slick.js 플러스 파운데이션 이퀄라이저 문제 (slick.js plus foundation equalizer issue)

반응형 웹사이트 드롭다운 양식 문제 (Responsive Website Dropdown form issue)

Foundation 6의 TopBar가 작동하지 않음 (TopBar in foundation 6 not working)

_settings.scss의 변수는 주석 처리되지 않은 상태로 컴파일됩니다. (Variables in _settings.scss are compiled as uncommented)

Foundation for Apps 프로젝트의 양쪽 맞춤 탭 (Justified tabs in Foundation for Apps project)

휴대폰에서 보이지 않는 웹사이트의 일부 (Part of the Website invisible on mobile phone)

Zurb Foundation 구성 요소가 작동하지 않음 (Zurb Foundation components not working)

Foundation 탭이 초기화되었는지 확인하는 방법은 무엇입니까? (How to check if Foundation tabs are initialized?)

Zurb Foundation 균등화 그리드: 그리드 셀 내부의 div 하단에 콘텐츠를 배치하는 방법 (Zurb Foundation equalised grid: how to position content at bottom of div inside grid cell)







코멘트