how to remove textbox outline in Opera

2019-09-06 10:03发布

I tested the below code but gain no success:

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;
}

Is there something here I'm missing?

4条回答
Emotional °昔
2楼-- · 2019-09-06 10:47

add this in your css which u are using

textarea:focus {
 outline-width: 0;
}
查看更多
Bombasti
3楼-- · 2019-09-06 10:54

Opera applies a yellow outline to form inputs that have saved login information. I don't think it is possible to override it with CSS.

查看更多
Fickle 薄情
4楼-- · 2019-09-06 10:57

for me it worked with that addition on Opera/Safari/Chrome

input:focus {
  outline: 0 none;
}
查看更多
女痞
5楼-- · 2019-09-06 11:06

Instead of using outline:none; try using border:0; given outline:none ll create cross-browser problem...

查看更多
登录 后发表回答