How to remove button outline in Opera on focus

前端 未结 12 1706
孤城傲影
孤城傲影 2021-01-02 18:54

Does anybody know how to remove the dotted outline on buttons in Opera?

12条回答
  •  我在风中等你
    2021-01-02 19:17

    I say this with the clear proviso that you shouldn't remove the outline unless you replace it with something else that indicates focus state ...

    If you apply a transform to the element, it kills the outline in opera; it doesn't even need to do a visible transform, merely applying the property is enough. So this will do the job:

    #myButton:focus
    {
        -o-transform:rotate(0);
    }

    But I can't promise that wouldn't be considered a rendering bug, and consequently something that may change in the future.

提交回复
热议问题