开发者

JQuery Mobile - blue button on release

开发者 https://www.devze.com 2023-04-06 19:03 出处:网络
When releasing a button in JQuery Mobile it will turn blue for just a short duration while the action is called. It can even be seen on JQuery Mobile own website.

When releasing a button in JQuery Mobile it will turn blue for just a short duration while the action is called. It can even be seen on JQuery Mobile own website.

My question is,开发者_如何转开发 how do i get rid of the button getting blue?

Thanks :)


Set the -webkit-tap-highlight-color attribute in your CSS.


Maybe a bit late, but an <a> element without the href attribute has no blue border.

<a data-role="button">Button</a>

Then just use the click event to specify the behaviour (example).

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号