我希望隐藏Chrome for Android的文本选择弹出窗口,该窗口会在用户选择任何文本时显示,以便默认的文本选项弹出窗口(附属截图)不会出现。是否有使用JavaScript的方法可以这样做,而不必完全删除文本选择功能?
你可以使用CSS,像这样,试一试 :)user-select: none; .disable-selection{ -moz-user-select:none; -ms-user-select:none; -webkit-user-select:none; } <p class="disable-selection">can't select this</p> <p>can select this</p>