更改按钮上虚线边框的颜色
我的其中一个表单中的按钮有问题,当用户单击该按钮时,它会在其中显示黑色虚线边框。我想删除这个,但我不知道如何删除。我没有在 CSS 中设置此边框...
((对于那些想知道的人;标题的意思是“搜索”))
我不久前搜索过,但用的是“虚线”而不是“点”,因此什么也没找到。我现在用“点”搜索,发现 这个,抱歉,但是有什么办法可以改变这个边框的颜色吗? (我认为这仅适用于 Firefox?)
I have a problem with a button in one of my forms, when a user clicks the button, it shows this black dotted border inside it. I would like to remove this, but I don't know how. I haven't set this border in the CSS...
((For those wondering; the caption means "search"))
I searched some time ago, but with "dashed" instead of "dotted" and therefore found nothing. I searched with "dotted" now and found this, sorry, but is there any way to change the color of this border? (I think this only applies to firefox?)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
这是
outline
您可以这样更改它:
That is the
outline
You can change it like this:
这是由
outline
CSS 属性< /a>.要删除它,请将以下规则(或类似规则)添加到样式表中:That is controlled by the
outline
CSS property. To remove it, add the following rules (or similar) to your stylesheet:我很抱歉没有弄清楚这个问题:这是在单击时发生的,我尝试过大纲属性,但讨厌的 Firefox 不接受它。通过阅读其他线程,我发现 答案:
I'm sorry for not being clear about the question: This happened when it was clicked, and I had tried the outline-attribute, but the pesky Firefox wouldn't accept it. By reading a little in the other thread, I found the answer:
根据评论:
考虑
As per the comments:
consider