html - 语义 UI 网格列高度

标签 html css semantic-ui

我正在构建一个简单的基于网格的布局,我想将 .vertical pointing menu 放在第 3 个紫色行内,如图所示 fiddle .使第 3 行的高度占据视口(viewport)的 100% 的正确方法是什么?我尝试将正文和指向菜单的高度设置为 100%,但这没有用。该行的高度由内容的高度决定,在本例中为菜单的高度。

最佳答案

以下代码片段(和 jsfiddle)摘自 Semantic-UI Issues页面,同一用户在其中提出了相同的问题:

<style>
    html, body {
        height: 100%;
    }

    .ui.grid {
        height: 100%;
    }
</style>

<div class="ui padded equal height grid">
  <div class="two wide purple column">
  </div>
  <div class="fourteen wide stretched column">
    <div class="ui equal height grid">
      <div class="sixteen wide red column"></div>
      <div class="eight wide orange column"></div>
      <div class="eight wide blue column"></div>
    </div>
  </div>
</div>

http://jsfiddle.net/ea04tkwo/

关于html - 语义 UI 网格列高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29052808/

相关文章:

jquery - HTML5 : How to count the length of the files from the multiple-input field

javascript - 缩放后的绝对位置

javascript - 在 contenteditable 中添加新行时字数错误

css - JavaFX8 日期选择器 : Change the navigation menu

javascript - 奇怪的 Safari 动画渲染问题

javascript - 如何缩放到 iframe 响应中的特定元素?

javascript - Jquery根据两个div之间的视口(viewport)将位置固定为静态

npm - 如何使用语义 UI 将生成的工件与主构建分开?

semantic-ui - 我如何获取语义 UI 弹出窗口的当前悬停元素

javascript - 多个语义 UI 弹出窗口,其中目标元素在每个实例的属性中定义