How can I disable highlighting in html or JS?

后端 未结 7 1932
太阳男子
太阳男子 2020-12-13 19:24

I need to disable the highlighting of selected text on my web app. I have a good reason for doing this and know that this is generally a bad idea. But I need to do it anyway

相关标签:
7条回答
  • 2020-12-13 20:24

    I just used * to disable highlighting or outline highlight for all elements

    *{
     outline: none;
    }
    

    answer reference: How to remove focus border (outline) around text/input boxes? (Chrome)

    0 讨论(0)
提交回复
热议问题