【问题标题】:jsTree context menu not showing with position of Relative in CSSjsTree上下文菜单未显示CSS中Relative的位置
【发布时间】:2015-10-09 21:49:35
【问题描述】:

知道为什么要有属性 position: relative;在我的父 div 的 CSS 中阻止显示 jsTree 的上下文菜单。我终于发现了为什么我在 jsTree 3.2 中的上下文菜单没有显示,这是因为这个属性。下面是完整的 CSS。

#content {
  background: #FFF;
  width: auto;
  min-height: 800px;
  z-index: 18;
  padding-bottom: 25px;
  margin-left: 240px;
  margin-right: 20px;
  position: relative;
  left: auto;
  top: auto;
}

【问题讨论】:

    标签: jquery html css jstree jstree-search


    【解决方案1】:

    原来问题出在 z-index 上。需要更高。使用 .vakata-context { z-index: somethinghigher; }

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-06-02
      • 1970-01-01
      • 1970-01-01
      • 2014-08-06
      相关资源
      最近更新 更多