bue*_*tge 13
我使用 Firefox 的自定义样式表为我修复它们。userContent.css
在目录中保留带有名称的自定义样式~/.mozilla/firefox/<custom-key>.default/chrome/
。您还应该添加目录chrome
,重要的是小写。使用下面的 css 代码为不同的输入字段修复它们。结果如下图所示。
如果您找不到要离开此样式表的文件夹,请阅读此答案。
将以下源复制到自定义样式表文件userContent.css
。
input {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
textarea {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
select {
border: 2px inset white;
background-color: white;
color: black;
-moz-appearance: none !important;
}
input[type="radio"],
input[type="checkbox"] {
border: 2px inset white !important;
background-color: white !important;
color: ThreeDFace !important;
-moz-appearance: none !important;
}
*|*::-moz-radio {
background-color: white;
-moz-appearance: none !important;
}
button,
input[type="reset"],
input[type="button"],
input[type="submit"] {
border: 2px outset white;
background-color: #eee;
color: black;
-moz-appearance: none !important;
}
body {
background-color: white;
color: black;
display: block;
margin: 8px;
-moz-appearance: none !important;
}
Run Code Online (Sandbox Code Playgroud)
如果您在单选按钮或复选框上遇到任何问题,在添加此 CSS 文件后,只需删除 -moz-appearance: none !important
归档时间: |
|
查看次数: |
7718 次 |
最近记录: |