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


문제 설명

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

내 Foundation 앱의 컨테이너에서 전체 너비/정렬 탭을 얻는 방법을 찾고 있습니다. 이것이 현재 일어나고 있는 일입니다.

여기에 이미지 설명 입력

Twitter Bootstrap에서 이 작업을 수행하면 Foundation에서 동일한 유형의 기능을 찾고 있습니다. 기본적으로 가능한가요?

저는 기본값을 사용하고 있습니다. 탭 구조 예시를 지금 바로 확인하세요.


참조 솔루션

방법 1:

Tabs in Foundation use the flexbox model. By default, their flex‑grow is 0 (they don't grow to fill up the parent). Change it to 1 and they will. Optionally, you might want to add text‑align: center, as now the tab text will be smaller than the tab itself:

div.tabs .tab‑item {
    flex‑grow: 1;
    text‑align: center;
}

(by Jared Eitniertao)

참조 문서

  1. Justified tabs in Foundation for Apps project (CC BY‑SA 2.5/3.0/4.0)

#tabs #zurb-foundation #css #twitter-bootstrap






관련 질문

양식 제출 후 현재 탭 유지 (Keeping the current tabs after submitting the form)

슬라이드다운 탭이 예상대로 작동하지 않음 (Slide-down tabs not working as expected)

일부 장치 Android에서 ViewPager가 작동하지 않음 (ViewPager not working on some devices Android)

ScrollView가 조각에서 작동하지 않습니다 (ScrollView doesn't work in fragment)

공백이 많은 줄을 읽고 출력에서 유지 (Reading lines with a lot of spaces and maintaining them in output)

Google지도 조각을 찾을 수 없습니다 (Can't find google maps fragment)

kaldi 설치 시 libmkl_tbb_thread.so sth 관련 문제 (A problem related to libmkl_tbb_thread.so sth when installing kaldi)

링크 클릭 시 새 탭 또는 창에서 특정 링크 열기 (Open specific link in new tab or window on link clicking)

Vue.js uiv 라이브러리의 Tab 구성 요소에 대한 클래스를 설정하는 방법은 무엇입니까? (How to set up classes for Vue.js uiv library's Tab component?)

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

고유 참조가 없는 한 HTML 페이지의 여러 탭(ID 또는 클래스 없음) (Multiple tabs in one HTML page without unique reference (no ID or class))

Angular Slickgrid 예제 24에서 Angular slickgrid 및 ngfor를 사용하여 동적으로 탭 만들기 (Dynamically create tabs with Angular slickgrid and ngfor in Angular Slickgrid Example 24)







코멘트