這篇文章帶給大家的內容是關於css如何實現禁止文字被選擇(代碼) ,有一定的參考價值,有需要的朋友可以參考一下,希望對你有所幫助。 css禁止文字被选择 .m-no-select { -webkit-touch-callout: none; /* iOS Safari */ -webkit-user-select: none; /* Chrome/Safari/Opera */ -khtml-user-select: none; /* Konqueror */ -moz-user-select: none; /* Firefox */ -ms-user-select: none; /* Internet Explorer/Edge */ user-select: none; /* Non-prefixed version, currently not supported by any browser */ } 可以选择 不可以选择 登入後複製 相關建議:CSS如何實作禁止選取文字_html/css_WEB-ITnose 禁止網頁上的文字被選擇_html/css_WEB-ITnose#