how to remove textbox outline in Opera

随声附和 提交于 2019-12-12 02:56:33

问题


I tested the below code but gain no success:

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?


回答1:


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.




回答2:


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




回答3:


add this in your css which u are using

textarea:focus {
 outline-width: 0;
}



回答4:


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

input:focus {
  outline: 0 none;
}


来源:https://stackoverflow.com/questions/10327162/how-to-remove-textbox-outline-in-opera

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!