我有 2 個組件,導航欄和翅膀影片,所以問題是在 chrome 中它可以正常作業(導航欄在翅膀下),但在 fireFox navBar 是在wingsAnimation 之上我知道瀏覽器有不同的引擎但沒有足夠的經驗解決這個問題
.navBarWrap {
display: block;
height: 120px;
z-index: 2;
position: absolute;
width: 100%;
}
.wingWrap {
position: relative;
z-index: 100 !important;
transform: translateY(10rem);
}
uj5u.com熱心網友回復:
我認為 6 年前的一個問題可以幫助你。看看“ z-index 行為在 chrome 和 firefox 中是不同的”。這對你有幫助嗎?
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/425048.html
