问题:
This question already has an answer here: 这个问题在这里已有答案:
- How to disable text selection highlighting 41 answers 如何禁用文本选择突出显示 41个答案
The header for my page has some centered text, but I do not want the user to be able to select it. 我页面的标题有一些居中的文字,但我不希望用户能够选择它。 Is there a way to do this with CSS? 有没有办法用CSS做到这一点?
解决方案:
参考一: https://en.stackoom.com/question/Sx2K参考二: https://stackoom.com/question/Sx2K