标签云

微信群

扫码加入我们

WeChat QR Code

防止选择单击[复制]转变

Possible Duplicate:
css rule to disable text selection highlighting
Prevent text selection after double click

Even though my events are properly prenting default actions, clicking in text and then Shift-clicking in other text is causing a selection. This is undesirable behaviour in this case, since I'm using Shift-click to multi-select these elements.

Is there something I need to do to specifically disable selection here?

EDIT: Found solution to my own problem here. Sorry for wasting people's time.


and a Javascript/jQuery solution: how to disable text selection using jquery

2018年05月27日30分27秒

I can't believe this question is marked as answered when none of the answers provide what is originally asked. The question is how to prevent selection on SHIFT+Click, not preventing text from being selected at all. Well, it's the Internet...

2018年05月27日30分27秒

andreak No, that's an XY problem.

2018年05月27日30分27秒

Which browser uses -kthml-?

2018年05月27日30分27秒

I think that is Konqueror

2018年05月27日30分27秒