CSS user-select 属性
cssweb developmentfront end technology更新于 2024/10/17 13:00:17
使用 CSS user-select 属性设置元素的文本是否可以通过 CSS 选择
示例
<!DOCTYPE html>
<html>
<head>
<style>
div {
user-select: none;
}
</style>
</head>
<body>
<h2>This is demo heading</h2>
<div>This is demo text. You won't be able to select it.</div>
</body>
</html>
相关文章
有用资源
css 参考教程 - 该教程包含有关 css 的更多信息:https://www.cainiaomax.com/css/

