gpt4 book ai didi

html - Firefox CSS 错误(在 Chrome 中工作正常)

转载 作者:行者123 更新时间:2023-11-28 07:01:56 25 4
gpt4 key购买 nike

我遇到了一个问题,下面的代码在 Chrome 中运行良好,但在 Firefox 中却不行。

<div id="client-controls">
<p style="margin-left: -90px;"><b>DHCP (?)</b></p>
<input type="checkbox" name="uncheckdhcp" id="uncheckdhcp" onclick="return uncheckdhcp();" checked/>
#client-controls html {
background-color: #e4ded4;
background-image: -webkit-linear-gradient(hsla(0,0%,0%,.1), hsla(0,0%,100%,.1));
box-shadow: inset 0 0 100px hsla(0,0%,0%,.1);
height: 100%;
}
#client-controls input[type="checkbox"] {
background-image: -webkit-linear-gradient(hsla(0,0%,0%,.1), hsla(0,0%,100%,.1)),
-webkit-linear-gradient(left, #f66 50%, #088A08 50%);
background-size: 100% 100%, 200% 100%;
#background-position: 0 0, 15px 0;
border-radius: 25px;
box-shadow: inset 0 1px 4px hsla(0,0%,0%,.5),
inset 0 0 10px hsla(0,0%,0%,.5),
0 0 0 1px hsla(0,0%,0%,.1),
0 -1px 2px 2px hsla(0,0%,0%,.25),
0 2px 2px 2px hsla(0,0%,100%,.75);
cursor: pointer;
height: 30px;
left: 0%;
#margin: -12px -37px;
padding-right: 0px;
#position: left;
top: 50%;
margin-top: -20%;
margin-left: -100px;
width: 80px;
-webkit-appearance: none;
-webkit-transition: .25s;
align:left;
float:left;
}
#client-controls input[type="checkbox"]:after {
background-color: #eee;
background-image: -webkit-linear-gradient(hsla(0,0%,100%,.1), hsla(0,0%,0%,.1));
border-radius: 25px;
box-shadow: inset 0 1px 1px 1px hsla(0,0%,100%,1),
inset 0 -1px 1px 1px hsla(0,0%,0%,.25),
0 1px 3px 1px hsla(0,0%,0%,.5),
0 0 2px hsla(0,0%,0%,.25);
content: '';
display: block;
height: 100%;
left: 0;
#position: relative;
top: 0;
width: 25px;
}
#client-controls input[type="checkbox"]:checked {
background-position: 0 0, 80px 0;
padding-left: 50px;
text-align: left;
content-align: left;
padding-right: 0;
}

请有人告诉我哪里出错了,也许需要更改什么?

PS:此代码用于滑动切换按钮,它以 chrome 显示,FF 仅显示一个带有阴影背景的复选框。谢谢。

最佳答案

您是否尝试过在有 -webkit 前缀的地方添加 -moz 前缀?

关于html - Firefox CSS 错误(在 Chrome 中工作正常),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33177823/

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