简体   繁体   English

滚动显示,但不能在固定菜单内的绝对 div 内的 div 中工作

[英]scroll show but wont work in div inside an absolute div inside a fixed menu

Im using sb admin dashboard for my project我为我的项目使用 sb 管理仪表板

Dashboard1仪表板1

and right at alert center where i list my alerts, i made the overflow scroll apear but wont work with the whell.就在我列出我的警报的警报中心,我使溢出滚动出现但无法正常工作。 works only if you click or drag.仅当您单击或拖动时才有效。

never seen something like it...it is inside an absolute and inside another fixed position从未见过类似的东西...它在绝对内部和另一个固定 position 内部

(i realize that in remark dashboard the overflow scroll works great inside the alert) (我意识到在备注仪表板中,溢出滚动在警报中效果很好)

Dashboard2仪表板2

however it may seen activated by a js但是它可能会被 js 激活

thanks for any help in advance...提前感谢您的帮助...

<div class="navbar" style="position:fixed;width:100%;top:0;">
  <li style="position:relative">
    <a href="" class="nav-link">
      icon-for-alert
    </a>
    <div class="dropdown-list" style="position:absolute;width:360px">
      <h6 class="dropdown-header">Alerts</h6>
      <div class="dropdown-body" style="height:270px;overflow:auto;">
        <a href="#">
          <span>stuff</span>
        </a>
        <a href="#">
          <span>stuff</span>
        </a>
        <a href="#">
          <span>stuff</span>
        </a>
        <a href="#">
          <span>stuff</span>
        </a>
      </div>
      <a class="dropdown-item" href="#">
        See All
      </a>
    </div>
  </li>
</div>;

it was a js conflict from another file.这是另一个文件的js冲突。 thankyall谢谢你

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM