gpt4 book ai didi

html - Mozilla Firefox ESR(最新 17)不会显示我的站点菜单,在所有其他浏览器中都可以使用

转载 作者:行者123 更新时间:2023-11-28 17:32:37 25 4
gpt4 key购买 nike

我今天遇到了一个奇怪的困境——我的网站菜单在 mozilla firefox ESR (17.03+) 上(根本)不显示。

下面是我的菜单如何设置为正常显示:

enter image description here

虽然当我在 MFESR 上加载它时:这是我收到的:

enter image description here

下面是我的 HTML 和 CSS 代码:

<div class="container">
<div id="menu_placehold">
<header class="slide"> <!-- Add "slideRight" class to items that move right when viewing Nav Drawer -->
<ul id="navToggle" class="burger slide"> <!-- Add "slideRight" class to items that move right when viewing Nav Drawer -->
<li></li><li></li><li></li>
</ul>
<div class="cf"></div>
<a href="index.html"><img src="img/logo/menu_logo.png" class="header_icon" /><h1>Vogel</h1></a>
<div class="cf"></div>
</header>

<nav class="slide">
<ul>
<li><a href="index.html">HOME</a></li>
<li><a href="solar.html" class="active">SOLAR</a></li>
<li><a href="electrical.html">ELECTRICAL</a></li>
<li><a href="about.html">ABOUT</a></li>
<li><a href="team.html">TEAM</a></li>
<li><a href="contact.html">CONTACT</a></li>
<li><a href="blog/">BLOG</a></li>
</ul>
<div class="socials socials_fix">
<div class="social_icos">
<a href="#"><img src="img/assets/icons/linkedin.png" style="width:30px; height: 30px;"/></a>
<a href="#"><img src="img/assets/icons/google_plus.png" style="width:30px; height: 30px;"/></a>
<a href="#"><img src="img/assets/icons/facebook.png" style="width:30px; height: 30px;"/></a>
<a href="#"><img src="img/assets/icons/twitter.png" style="width:30px; height: 30px;"/></a>
<a href="#"><img src="img/assets/icons/instagram.png" style="width:30px; height: 30px;"/></a>
<a href="#"><img src="img/assets/icons/youtube.png" style="width:30px; height: 30px;"/></a>
</div>
</div>
</nav>

<div class="menu_number"><a href="callto:#"><h1>PHONENUMBERHERE</h1></a></div>

</div>
</div>

相关 CSS(对于粘贴我的整个 trunk css 文件表示歉意,虽然我不知道是什么导致了它,所以感觉应该没有一个被遗漏):

body {
background-color: #000;
color: #9aa6af;
text-rendering: optimizelegibility;

-webkit-tap-highlight-color:rgba(0,0,0,0);
-webkit-text-size-adjust: none;
-webkit-font-smoothing: antialiased;

-moz-tap-highlight-color:rgba(0,0,0,0);
-moz-text-size-adjust: none;
-moz-font-smoothing: antialiased;

-ms-tap-highlight-color:rgba(0,0,0,0);
-ms-text-size-adjust: none;
-ms-font-smoothing: antialiased;
}
a {text-decoration: none;}

#list li {
color: #89c441;
}

.text_green {font-weight:700;}
.container {overflow: hidden; background-color: #000;


/* Prevents Flickering */
-webkit-backface-visibility: hidden;
-moz-backface-visibility: hidden;
-ms-backface-visibility: hidden;
}

/*=== fiddling ===*/


header {
height: 60px;
z-index: 2;
background-color: #404040;

position: fixed;
top: 0;
right: 0;
left: 0;


}
header h1 {
color: #fff;
text-align: left;
font-size: 27px;
line-height: 60px;
font-weight: bold;
padding-left: 20px;
}

.burger {
position: absolute;
float: left;
padding: 10px;
top: 4px;
left: 10px;
list-style: none;
display: none;
}
.burger li {
width: 30px;
height: 4px;
background-color: #fff;
border-radius: 3px;
margin: 5px 0;
}
.burger.open li {background-color: #d9dde1;}

nav {
position: fixed;
z-index:3;
top: 0;
right: calc(50% - 450px);
right: -webkit-calc(50% - 450px);
right: -moz-calc(50% - 450px);
right: -o-calc(50% - 450px);
width: 850px;

}
nav li {
float: left;

display: inline-block;
}
nav li a {
font-size: 15px;
color: #fff;
padding: 20px 15px;
font-weight: 700;
display: block;
}
nav li a:hover {color: #89c441;}
@media only screen and (max-width: 1400px) {
nav {width: 750px;}
}


@media only screen and (max-width: 950px) {
.socials {display:none;}
nav {width:600px; right: 5px;}
}

@media only screen and (max-width: 800px) {
.main_body{padding-top: 0;}
header {
height: 60px;
z-index: 2;
background-color: #404040;

position: fixed;
top: 0;
right: 0;
left: 0;

/* starting point */
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
}
header h1 {
color: #ffffff;
text-align: center;
padding-left: 0;
display: block;
float:left;
}
.burger {display: block;}


/* Nav Drawer Layout */
nav {position: relative;}

nav ul {
height: 100%;
overflow-y: auto;
}
nav li {
display: block;
float: none;
}
nav li a {
padding: 22px 25px;
letter-spacing: 3px;
font-size: 14px;
}
nav li a.logo {
display: none;
}
nav li a.active {
color: #89c441;
background-color: #5D5D5D;
}
nav li a:hover {
color: #fff;
background-color: #404040;
}
nav li:first-child a.active,
nav li:first-child a:hover
{border-radius: 10px 0 0 0;}

.header-section {margin-top: 60px;}


/* NAVIGATION ANNIMATION */
nav {
width: 93%;

position: fixed;
left: 0;
top: 0;
margin: 0;
background-color: #5D5D5D;
border-radius: 8px;
z-index:-20;
/* starting point */
opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);
-moz-transform: translate3d(5%,0,0)scale(.97);
transform: translate3d(5%,0,0)scale(.97);
}

/*Nav Expanding Open Effect*/
nav.open {
opacity: 1;

-webkit-transform: translate3d(0,0,0)scale(1);
-webkit-animation: slideIn .35s ease-in-out;

-moz-transform: translate3d(0,0,0)scale(1);
-moz-animation: slideIn .35s ease-in-out;

transform: translate3d(0,0,0)scale(1);
animation: slideIn .35s ease-in-out;
z-index:1;
}
@-webkit-keyframes slideIn {
0% {opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);}
100% {opacity: 1;
-webkit-transform: translate3d(0,0,0)scale(1);}
}
@-moz-keyframes slideIn {
0% {opacity: .3;
-moz-transform: translate3d(5%,0,0)scale(.97);}
100% {opacity: 1;
-moz-transform: translate3d(0,0,0)scale(1);}
}
@keyframes slideIn {
0% {opacity: .3;
transform: translate3d(5%,0,0)scale(.97);}
100% {opacity: 1;
transform: translate3d(0,0,0)scale(1);}
}

/*Nav Shrinking Closed Effect*/
nav.close {
opacity: .3;

-webkit-transform: translate3d(5%,0,0)scale(.97);
-webkit-animation: slideOut .3s ease-in-out;

-moz-transform: translate3d(5%,0,0)scale(.97);
-moz-animation: slideOut .3s ease-in-out;

transform: translate3d(5%,0,0)scale(.97);
animation: slideOut .3s ease-in-out;
}
@-webkit-keyframes slideOut {
0% {opacity: 1;
-webkit-transform: translate3d(0,0,0)scale(1);}
100% {opacity: .3;
-webkit-transform: translate3d(5%,0,0)scale(.97);}
}
@-moz-keyframes slideOut {
0% {opacity: 1;
-moz-transform: translate3d(0,0,0)scale(1);}
100% {opacity: .3;
-moz-transform: translate3d(5%,0,0)scale(.97);}
}
@keyframes slideOut {
0% {opacity: 1;
transform: translate3d(0,0,0)scale(1);}
100% {opacity: .3;
transform: translate3d(5%,0,0)scale(.97);}
}



/* CONTENT ANNIMATION */
.content {
/* starting point */
-webkit-transform: translate3d(0,0,0);
-moz-transform: translate3d(0,0,0);
transform: translate3d(0,0,0);
z-index: 1;
}

/*Content Sliding Open Effect*/
header.open,
.content.open
{
-webkit-transform: translate3d(240px,0,0);
-webkit-animation: open .5s ease-in-out;

-moz-transform: translate3d(240px,0,0);
-moz-animation: open .5s ease-in-out;

transform: translate3d(240px,0,0);
animation: open .5s ease-in-out;
}
@-webkit-keyframes open {
0% {-webkit-transform: translate3d(0,0,0);}
70% {-webkit-transform: translate3d(260px,0,0);}
100% {-webkit-transform: translate3d(240px,0,0);}
}
@-moz-keyframes open {
0% {-moz-transform: translate3d(0,0,0);}
70% {-moz-transform: translate3d(260px,0,0);}
100% {-moz-transform: translate3d(240px,0,0);}
}
@keyframes open {
0% {transform: translate3d(0,0,0);}
70% {transform: translate3d(260px,0,0);}
100% {transform: translate3d(240px,0,0);}
}

/*Content Sliding Closed Effect*/
header.close,
.content.close
{
-webkit-transform: translate3d(0,0,0);
-webkit-animation: close .3s ease-in-out;

-moz-transform: translate3d(0,0,0);
-moz-animation: close .3s ease-in-out;

transform: translate3d(0,0,0);
animation: close .3s ease-in-out;
}
@-webkit-keyframes close {
0% {-webkit-transform: translate3d(240px,0,0);}
100% {-webkit-transform: translate3d(0,0,0);}
}
@-moz-keyframes close {
0% {-moz-transform: translate3d(240px,0,0);}
100% {-moz-transform: translate3d(0,0,0);}
}
@keyframes close {
0% {transform: translate3d(240px,0,0);}
100% {transform: translate3d(0,0,0);}
}

}

编辑:我认为这与将背面可见性设置为隐藏有关,当我在元素检查屏幕中禁用它时菜单显示,但是当我对 css 进行任何更改时它仍然保持隐藏状态。

最佳答案

我发现 Mozilla Firefox ESR 与 backface-visiblity:hidden; (-moz-backface-visiblity) 有一个非常奇怪的交互。具有固定位置的元素,当放置在另一个元素之上且背面可见性设置为“隐藏”时,似乎会忽略任何 z-index 占位符。我将容器设置为“-moz-backface-visibility: visible;”现在显示,非常非常奇怪。它在 firefox 的标准发行版上运行良好。

关于html - Mozilla Firefox ESR(最新 17)不会显示我的站点菜单,在所有其他浏览器中都可以使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25735702/

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