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 colorbox プラグインを使用しています。私のページでも div が開き、背景はいつものように暗くなります。ただし、ユーザーが何かを作成すると、ページに通知が表示され、黒い背景になります。
カラーボックスでオーバーレイされないようにするには、通知 div に対して (css を使用して) どうすればよいですか?
私はそれを私のcssに追加しました、そしてそれは機能します:
z-index: 10000;
通知 div は body 要素の直接の子である必要があり、1 つのカラーボックスが使用しているよりも高い z-index 値を持つ必要があります。