Home >Web Front-end >CSS Tutorial >CSS user selection properties
Using CSS user-select The attribute sets whether the text of the element can be selected using CSS
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't be able to select it.</div> </body> </html>
The above is the detailed content of CSS user selection properties. For more information, please follow other related articles on the PHP Chinese website!