CSS user selection properties

PHPz
Release: 2023-08-25 15:25:09
forward
1251 people have browsed it

CSS 用户选择属性

Using CSS user-select The attribute sets whether the text of the element can be selected using CSS

Example

Onsite Demo

<!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&#39;t be able to select it.</div>
   </body>
</html>
Copy after login

The above is the detailed content of CSS user selection properties. For more information, please follow other related articles on the PHP Chinese website!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template