Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
可能重复: 在 jQuery 中双击禁用文本突出显示
我在这里有一个程序,当您单击时,它会发射炮塔。但是每次双击它都会突出显示所有图片。有什么办法可以解决吗?谢谢!!
您可以使用 css 禁用用户选择:
-webkit-touch-callout: none; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;