問題:
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