JQuery Mobile: how to not display the button focus halo when a button is clicked?

后端 未结 4 1744
夕颜
夕颜 2021-01-13 15:02

I have buttons in my web app using jQuery Mobile.

When clicked the buttons have the ui-focus class added which displays a blue halo around buttons. The class stays

4条回答
  •  死守一世寂寞
    2021-01-13 15:14

    You can override the default css instead of hacking up the source. Just make sure your css file is after the JQM one.

    .ui-focus,
    .ui-btn:focus {
        -moz-box-shadow: none;
        -webkit-box-shadow: none;
        box-shadow: none ;
    }
    

提交回复
热议问题