GWT: How do I remove the focus indicator of a Canvas Widget?

前端 未结 1 1279
栀梦
栀梦 2021-01-01 23:57

I have created a Canvas using:

Canvas canvas = Canvas.createIfSupported();

and added it to the DOM via:

RootPanel.get(\"can         


        
相关标签:
1条回答
  • 2021-01-02 00:31

    Add

    canvas {
      outline: none;
      -webkit-tap-highlight-color: rgba(255, 255, 255, 0); /* mobile webkit */
    }
    

    into your canvas tag CSS.

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