문제 설명
Zurb Foundation 구성 요소가 작동하지 않음 (Zurb Foundation components not working)
Zurb Foundation 6 사용자 정의 패키지(모든 구성 요소) 강하다> 예를 들면. Off‑Canvas를 활성화하는 방법은 무엇입니까? CSS 파일(foundation.css)에는 필요한 스타일이 있고 JS 파일(foundation.js)에는 일부 참조가 있습니다. 더 이상 파일이 없습니다. 모든 패키지에서...
참조 솔루션
방법 1:
After downloading the package, make sure you include the componet in your html and calling it. make sure you follow the instructions as noted here:
http://foundation.zurb.com/sites/docs/off‑canvas.html#setup
also create a button to toggle the off canvas:
<button type="button" class="button" data‑toggle="offCanvas">Open Menu</button>
and init the new off‑canvas element at your JS file:
var elem = new Foundation.OffCanvas(element, options);
(by Dmitriy Gavrilenko、elicohenator)