您好,欢迎访问一九零五行业门户网

css如何实现禁止文字被选择(代码)

本篇文章给大家带来的内容是关于css如何实现禁止文字被选择(代码) ,有一定的参考价值,有需要的朋友可以参考一下,希望对你有所帮助。
<!doctype html><html> <head> <meta charset="utf-8"> <title>css禁止文字被选择</title> <style type="text/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, currentlynot supported by any browser */ } </style></head><div>可以选择</div><div>不可以选择</div> <body> <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script> <script type="text/javascript"> </script></body> </html>
相关推荐:
css如何实现禁止选中文本_html/css_web-itnose
禁止网页上的文字被选择_html/css_web-itnose
以上就是css如何实现禁止文字被选择(代码)的详细内容。
其它类似信息

推荐信息