gpt4 book ai didi

html - 如何保持这个 div 可见?

转载 作者:行者123 更新时间:2023-11-28 15:23:26 26 4
gpt4 key购买 nike

我把一棵树做成了一个div,效果很好。

当树关闭时:看起来像这样:

enter image description here

但是当树打开时:我希望所有的 div 都可见:

enter image description here

您在图片上看到 table 隐藏了一部分,并且树不是完全可见的。

代码是:

<div style="height:30px; overflow:visible; border: 1px solid #e5e6e7; background-color: #ffffff;    z-index:10;">

<div id="arbre_json" ></div>
</div>

我尝试使用“z-index”属性和“溢出”属性,但没有成功。我该怎么做?

非常感谢您的回复。祝你有愉快的一天。

多米尼克

最佳答案

使用 js 你可以通过使用 .children 来控制 div

https://api.jquery.com/children/

关于html - 如何保持这个 div 可见?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30371716/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com