gpt4 book ai didi

html - 当边框在每个元素上为 0px,在选择上为 1px 时,Firefox 下拉箭头

转载 作者:行者123 更新时间:2023-11-28 10:33:11 24 4
gpt4 key购买 nike

我在使用以下 css 的 firefox 时遇到了一个奇怪的问题:

* {
margin: 0;
padding: 0;
border: 0;
}

select {
border: 1px solid #A3A3A3;
}

在 chrome 中这是正确的:

all options on chrome correct

但是在 Firefox 中我得到了这个:

all options on chrome not correct

当我删除“border: 0”和“border: 1px solid #A3A3A3;”时属性,它工作正常:

all options firefox correct

关于如何在 chrome 和 firefox 上获得相同显示的任何建议?谢谢

最佳答案

每个浏览器都有自己的css,我们必须根据您可以使用的浏览器设置一些css

-moz-appearance: none;

为此

关于html - 当边框在每个元素上为 0px,在选择上为 1px 时,Firefox 下拉箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23442541/

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