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.
我正在使用两个 jQuery 函数:一个在标题中(下拉替换),一个在内容部分(可用项目年份的图形表示)。我的问题是它们重叠。如何将下拉功能放在第二个功能之上一层?
我很感谢任何提示!
您应该将z-index CSS 属性应用于背景中的元素。
请注意,两个元素(您喜欢放在前面的元素和当前与其重叠的元素)需要位于相同的堆叠上下文中才能使 z-index 起作用。