我注意到在chrome中如果你有一个asp.net图像按钮然后鼠标移动然后鼠标移动并最终鼠标向上,则不会触发单击事件。它适用于其他浏览器。有没有人可以解决这个问题?
答案 0 :(得分:5)
这是因为当你这样做时,chrome会启动选择/拖动行为。请尝试以下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;
}