css - 如何删除 Opera 中的文本框轮廓

标签 css textbox opera outline

我测试了下面的代码但没有成功:

enter image description here

input[type="text"]:focus, input[type="password"]:focus {
    outline:none;
    -moz-transition: box-shadow 0.3s ease-out 0s;
    background-clip: padding-box;
    border: 1px solid #B6B6B6;
    border-radius: 3px 3px 3px 3px;
    color: #404040;
    font-size: 16px;
    height: auto;
    line-height: 16px;
    padding: 10px;
}

这里有我遗漏的东西吗?

最佳答案

Opera 将黄色轮廓应用于已保存登录信息的表单输入。我认为不可能用 CSS 覆盖它。

关于css - 如何删除 Opera 中的文本框轮廓,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10327162/

相关文章:

html - 当切换相邻列中的元素时,col 中的元素会稍微移动

html - 将表上的列与固定标题对齐

iphone - 当我在 iPhone 上查看时,我网站的菜单看起来不正确

html - 按钮只能在下半部分 html 上点击

C# 从文本框中存储一个字符串值并调用该变量

javascript - Opera 中奇怪的 Canvas 旋转

mysql - 使用 Visual Basic 在文本框中显示来自 MySql 的自动编号

javascript - 如何确保字符数超过 160 时禁用按钮

CSS 表单样式在 firefox/Opera 中不显示

PowerShell,针对不指向文件但启动文件下载的 url 调用 WebRequest