css - Foundation 5 水平选项卡未正确显示缺少的 css

标签 css zurb-foundation

我正在使用 foundation 5 并复制了水平选项卡的 html 代码

<ul class="tabs" data-tab>
  <li class="tab-title active"><a href="#panel2-1">Tab 1</a></li>
  <li class="tab-title"><a href="#panel2-2">Tab 2</a></li>
  <li class="tab-title"><a href="#panel2-3">Tab 3</a></li>
  <li class="tab-title"><a href="#panel2-4">Tab 4</a></li>
</ul>
<div class="tabs-content">
  <div class="content active" id="panel2-1">
    <p>First panel content goes here...</p>
  </div>
  <div class="content" id="panel2-2">
    <p>Second panel content goes here...</p>
  </div>
  <div class="content" id="panel2-3">
    <p>Third panel content goes here...</p>
  </div>
  <div class="content" id="panel2-4">
    <p>Fourth panel content goes here...</p>
  </div>
</div>

现在 css 未应用于示例代码。 请帮助我在哪里可以找到 css。

谢谢。

最佳答案

Foundation 5 选项卡已从 ul 切换到 dl 下面是想要的结构

<dl class="tabs" data-tab>
   <dd class="active"><a href="#panel2-1">Tab 1</a></dd>
  ....

link on git

文档已过时

关于css - Foundation 5 水平选项卡未正确显示缺少的 css,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24258295/

相关文章:

html - 如何在移动设备中显示全尺寸背景?

javascript - :hover style sticking on iOS browser

html - 与所有屏幕尺寸的小屏幕相同的顶部栏

javascript - 通过 Foundation Framework 有条件地提供 javascript

html - CSS:强制选中 radio 输入

html - 我的导航栏 "position sticky"已停止工作,我不明白为什么

html - Bootstrap 3 : Input group in navbar form takes up entire width

css - Zurb 基金会菜单被切断

javascript - jQuery 绑定(bind)/更改下拉表单

css - 使用 Zurb Foundation 时设置网页背景图片?