Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能这是一个愚蠢的问题,但我需要在 Twitter 引导模式淡入淡出上方显示一些 DIV。
问题是 DIV 在模态淡入淡出出现之前已经在页面上,并且当它出现时,它会在页面上的所有元素之后设置自己,尽管有任何 z-index 值。
最终我明白了。添加位置:绝对对我有用:
<div style="z-index: 1050; position: absolute;">ABOVE THE MODAL FADE</div>