css设置文字不能被选中

xiaoxiao2021-03-01  14


给想要设置文字不可选中区域外层添加class:select,并为该class设置样式如下: .select{ -webkit-user-select:none; -moz-user-select:none; -ms-user-select:none; user-select:none; }
转载请注明原文地址: https://www.6miu.com/read-4050024.html

最新回复(0)