gpt4 book ai didi

javascript 和 css firefox 问题

转载 作者:太空宇宙 更新时间:2023-11-04 15:43:41 27 4
gpt4 key购买 nike

弹出窗口在 chrome 中完美运行,但在 firefox 中不起作用我给了 css: float:left; 但它没有得到修复

fiddle :http://jsfiddle.net/rajkumart08/s6hBG/21/

CSS:

a{
text-decoration: none;
color: inherit;
}


.openme {
display: inline-block;
color: #fff;
background-color: #333;
padding: 10px;
}

#menu{
position: absolute;
padding: 20px 0px 0px;
background: -webkit-canvas(menu_background) no-repeat;
-webkit-transition: opacity 300ms ease-out;
-moz-transition: opacity 300ms ease-out;
}

#menu a{
float:left;
margin: 7px;
padding: 10px 20px;
font-weight: bold;
font-size: 20px;
text-align: center;
border-radius: 5px;
background-image: -webkit-gradient(linear, 0% 50%, 0% 51%, from(#fff), to(#edeff3));
background-image: -moz-linear-gradient(top, #fff, #edeff3);
}

.hide {
opacity: 0;
}

.show {
opacity: 1;
}​

最佳答案

将此添加到您的 CSS:

#moz_background
{
display:none;
}

然后改变这个:

#menu{
position: absolute;
padding: 20px 0px 0px;
background: -webkit-canvas(menu_background) ;
-webkit-transition: opacity 300ms ease-out;
-moz-transition: opacity 300ms ease-out;
}

到:

#menu
{
position:absolute;
padding:20px 0px 0px;
background:-webkit-canvas(menu_background) no-repeat;
background:-moz-element(#moz_background) no-repeat;
-webkit-transition:opacity 300ms ease-out;
-moz-transition:opacity 300ms ease-out;
transition:opacity 300ms ease-out;
}

DEMO

关于javascript 和 css firefox 问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11942770/

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