如何使CSS無法選擇某些文本[重複] - How to make certain text not selectable with CSS [duplicate]

問題:

This question already has an answer here: 這個問題在這裏已有答案:

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
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章