Home >Web Front-end >HTML Tutorial >How to block double-click selected text_html/css_WEB-ITnose

How to block double-click selected text_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 11:56:481369browse

FF style: -moz-user-select:none;

For browsers other than FF: onselectstart="return false" (add it directly to the desired function tag)

eg:

You can’t choose me . . . (Shield the area where text is selected by double-clicking)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn