Copy Chrome default input's outline style

后端 未结 6 890
心在旅途
心在旅途 2021-01-07 17:18

How can I set the default Chrome input\'s outline style (on focus, the orange one), so it looks the same in every browser? Chrome style seems to be textarea:focus{outl

6条回答
  •  生来不讨喜
    2021-01-07 17:40

    Don't know if my solution is good enough for you, but so far, i don't know any other way... I do it like this:

    textarea:focus
    {
        outline:none; /*or outline-color:#FFFFFF; if the first doesn't work*/
        border:1px solid #48A521;
        -webkit-box-shadow: 0px 0px 4px 0px #48A521;
        box-shadow: 0px 0px 4px 0px #48A521;
    }
    

提交回复
热议问题