I noticed that in chrome if you hav开发者_JAVA技巧e an asp.net image button and do a mouse down then a mouse move and finally a mouse up, a click event is not fired. It works in other browsers. Does any body have a work around to this ???
It's because chrome starts a select/drag behavior when you do that. Try the following css.
html, body, div, span, object, form, input, h1, h2, button, label, a, img
{
-moz-user-select: none;
-webkit-user-select: none; /* this will work for QtWebKit in future */
-webkit-user-drag: none;
}
精彩评论